# 2420 - End intervention

> MSS documentation · https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/services/2420-services-end-intervention
>
> Eventos EXT_2420 ao terminar uma intervenção, com o serviço e as linhas da intervenção e do equipamento; o Replace usa outRunMSSCode.

2420 - End intervention

| Event | Extension action set | Description |
| --- | --- | --- |
| [Before ](https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/services/2420-services-end-intervention.md#before) | EXT_2420_1_Before | Will be executed before MSS terminates an intervention; |
| [Replace](https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/services/2420-services-end-intervention.md#replace) | EXT_2420_2_Replace | Will replace MSS end intervention code, can be used also to create validations before MSS terminates the intervention using the output parameter **outRunMSSCode**; |
| [After](https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/services/2420-services-end-intervention.md#after) | EXT_2420_3_After | Will be executed after MSS terminates the intervention; |

### Before

_Input Parameters_

* inServiceExercise – Exercise of the service (SITEXR);
* inServiceSeries – Serie of the service (SITSER);
* inServiceNumber – Number of the service (SITNDC);
* inInterventionLine – Line number of intervention (SITLIN);
* inEquipmentLine – Line number of equipment (SITLEQ);

### Replace

_Input Parameters_

* inServiceExercise – Exercise of the service (SITEXR);
* inServiceSeries – Serie of the service (SITSER);
* inServiceNumber – Number of the service (SITNDC);
* inInterventionLine – Line number of intervention (SITLIN);
* inEquipmentLine – Line number of equipment (SITLEQ);

_Output Parameters_

* outRunMSSCode – when replacing MSS module must return 0(zero), if working as validations can return 1 so MSS terminates the intervention, 0 to ignore MSS code or -1 to abort the operation;

### After

_Input Parameters_

* inServiceExercise – Exercise of the service (SITEXR);
* inServiceSeries – Serie of the service (SITSER);
* inServiceNumber – Number of the service (SITNDC);
* inInterventionLine – Line number of intervention (SITLIN);
* inEquipmentLine – Line number of equipment (SITLEQ);
