Class BTInterventionOutcomeSave
java.lang.Object
overit.geocall.bl.BusinessTask<InterventionOutcomeSaveEvent>
overit.geocallapp.wfm.core.bl.schedule.intervention.outcome.task.BTInterventionOutcomeSave
- All Implemented Interfaces:
Serializable,Tool
@Event(InterventionOutcomeSaveEvent.class)
public class BTInterventionOutcomeSave
extends BusinessTask<InterventionOutcomeSaveEvent>
Business task in order to save a
InterventionOutcomeSaveInput.
When the InterventionOutcomeSaveEvent is launched the BT notices the
call and saves the InterventionOutcomeSaveInput basing on the event's
input.
Error Code:
Codes.C270_1156: Specified Outcome cause is not valid, there is already a conclusive outcome for operation in day following specifiedCodes.C270_0201: Error record updateCodes.EX_EWO_001: Compilation EWO mandatory and blocked for WO accounting
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(InterventionOutcomeSaveEvent event, PoolKit poolKit) Saves the givenInterventionOutcome.protected voidcheckEwoBlocking(InterventionOutcomeSaveInput input, PooledConnection conn) protected voidcompletaConsuntiviUtenti(InterventionOutcomeSaveInput outcome, PooledConnection conn) protected voidcreateConsuntiviUtenti(InterventionOutcomeSaveInput outcome, PooledConnection conn) protected voidhandleNotification(InterventionOutcomeSaveInput outcome, PooledConnection conn) protected TechnicalObjectloadTechnicalObject(Long technicalObjectId, PoolKit poolKit) protected voidsaveAccessoryData(InterventionOutcomeSaveInput outcome, PoolKit poolKit) protected voidsaveAgendaOutcome(InterventionOutcomeSaveInput outcome, PoolKit poolKit) Saves the agenda outcome dataprotected voidsaveMeterReadings(InterventionOutcomeSaveInput outcome, PoolKit poolKit) Saves the meter readings related to interventionprotected voidsaveOutcome(InterventionOutcomeSaveInput outcome, PoolKit poolKit) Saves the intervention outcome dataprotected voidvalidateMeasures(InterventionOutcomeSaveInput outcome, PoolKit poolKit) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTInterventionOutcomeSave
public BTInterventionOutcomeSave()
-
-
Method Details
-
body
protected void body(InterventionOutcomeSaveEvent event, PoolKit poolKit) throws DAException, DAValidateException Saves the givenInterventionOutcome.- Specified by:
bodyin classBusinessTask<InterventionOutcomeSaveEvent>- Parameters:
event- theInterventionOutcomeSaveEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
saveOutcome
protected void saveOutcome(InterventionOutcomeSaveInput outcome, PoolKit poolKit) throws DAValidateException, DAException Saves the intervention outcome data- Parameters:
outcome- the input bean for intervention outcome savepoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
saveAgendaOutcome
protected void saveAgendaOutcome(InterventionOutcomeSaveInput outcome, PoolKit poolKit) throws DAValidateException, DAException Saves the agenda outcome data- Parameters:
outcome- the input bean for intervention outcome savepoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
completaConsuntiviUtenti
protected void completaConsuntiviUtenti(InterventionOutcomeSaveInput outcome, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
createConsuntiviUtenti
protected void createConsuntiviUtenti(InterventionOutcomeSaveInput outcome, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
handleNotification
protected void handleNotification(InterventionOutcomeSaveInput outcome, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
checkEwoBlocking
protected void checkEwoBlocking(InterventionOutcomeSaveInput input, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
validateMeasures
protected void validateMeasures(InterventionOutcomeSaveInput outcome, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
saveMeterReadings
protected void saveMeterReadings(InterventionOutcomeSaveInput outcome, PoolKit poolKit) throws DAValidateException, DAException Saves the meter readings related to intervention- Parameters:
outcome- the input bean for intervention outcome savepoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadTechnicalObject
protected TechnicalObject loadTechnicalObject(Long technicalObjectId, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
saveAccessoryData
protected void saveAccessoryData(InterventionOutcomeSaveInput outcome, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-