Class BTInterventionArrivalOnSite<T extends InterventionExecutionInput>
java.lang.Object
overit.geocall.bl.BusinessTask<SimpleBusinessEvent<T,Void>>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<SimpleBusinessEvent<T,Void>>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<SimpleBusinessEvent<T,Void>>
overit.geocallapp.wfm.orchestrator.workorders.bl.outcome.intervention.task.BTInterventionExecution<T>
overit.geocallapp.wfm.orchestrator.workorders.bl.outcome.intervention.task.BTInterventionArrivalOnSite<T>
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(InterventionArrivalOnSiteEvent.class)
public class BTInterventionArrivalOnSite<T extends InterventionExecutionInput>
extends BTInterventionExecution<T>
Business task used to save the intervention information related to the arrival on site of the technician.
It is triggered by the
InterventionArrivalOnSiteEvent.- Since:
- 18.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.wfm.orchestrator.workorders.bl.outcome.intervention.task.BTInterventionExecution
intervention, operationFields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidChecks that the arrival on site date provided in theInterventionExecutionInputis valid.protected voidChecks that the intervention status is "In Charge" before performing the arrival on site action.protected voidperformInterventionAction(InterventionExecutionInput input, PoolKit poolKit) Arrival at the site an intervention by updating the intervention outcome and sending a notification that will update the agenda status.Methods inherited from class overit.geocallapp.wfm.orchestrator.workorders.bl.outcome.intervention.task.BTInterventionExecution
execute, findInterventionsToBeRemoved, getIntegrationService, isValidExecution, notifyInterventionOutcome, recalculateWorkOrderOperationStatus, recalculateWorkOrderStatus, removeOtherInterventionsFromForeman, updateWorkOrderOperation, validateInputMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTInterventionArrivalOnSite
public BTInterventionArrivalOnSite()
-
-
Method Details
-
checkDate
Checks that the arrival on site date provided in theInterventionExecutionInputis valid. The date must not be null and must not be after the current date.- Specified by:
checkDatein classBTInterventionExecution<T extends InterventionExecutionInput>- Parameters:
inputDate- The arrival on site date to validate of theInterventionExecutionInput- Throws:
DAValidateException- If the arrival on site date is invalid.
-
checkInterventionStatus
Checks that the intervention status is "In Charge" before performing the arrival on site action. This ensures the intervention is in the correct state to handle the arrival on site event.- Specified by:
checkInterventionStatusin classBTInterventionExecution<T extends InterventionExecutionInput>- Throws:
DAValidateException- if the intervention status is not "In Charge"
-
performInterventionAction
protected void performInterventionAction(InterventionExecutionInput input, PoolKit poolKit) throws DAValidateException, DAException Arrival at the site an intervention by updating the intervention outcome and sending a notification that will update the agenda status.- Specified by:
performInterventionActionin classBTInterventionExecution<T extends InterventionExecutionInput>- Parameters:
input- TheInterventionExecutionInputpoolKit- thePoolKit- Throws:
DAException- If any error occurs during the process.DAValidateException- If any validation error occurs.
-