Class BTInterventionStart<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.BTInterventionStart<T>
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(InterventionStartEvent.class)
public class BTInterventionStart<T extends InterventionExecutionInput>
extends BTInterventionExecution<T>
Represents a business task class for an intervention start.
It is triggered by the
InterventionStartEvent.- 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 the provided intervention start date to ensure it is valid.protected voidChecks the status of the intervention to ensure it is in the "In Execution" state.protected voidperformInterventionAction(InterventionExecutionInput input, PoolKit poolKit) Start 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
-
BTInterventionStart
public BTInterventionStart()
-
-
Method Details
-
checkDate
Checks the provided intervention start date to ensure it is valid. If the date is null, missing, before the minimum allowed date, or after the current date, aDAValidateExceptionis thrown.- Specified by:
checkDatein classBTInterventionExecution<T extends InterventionExecutionInput>- Parameters:
inputDate- The start date to validate of theInterventionExecutionInput- Throws:
DAValidateException- If the start date is invalid.
-
checkInterventionStatus
Checks the status of the intervention to ensure it is in the "In Execution" state. If the intervention is not in the "In Execution" state, aDAValidateExceptionis thrown.- Specified by:
checkInterventionStatusin classBTInterventionExecution<T extends InterventionExecutionInput>- Throws:
DAValidateException- if the intervention is not in the "In Execution" state
-
performInterventionAction
protected void performInterventionAction(InterventionExecutionInput input, PoolKit poolKit) throws DAValidateException, DAException Start 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.
-