Class BTInterventionDurationLoad
java.lang.Object
overit.geocall.bl.BusinessTask<InterventionDurationLoadEvent>
overit.geocallapp.wfm.ai.bl.duration.prediction.task.BTInterventionDurationLoad
- All Implemented Interfaces:
Serializable,Tool
@Event(value=InterventionDurationLoadEvent.class,
priority=270)
public class BTInterventionDurationLoad
extends BusinessTask<InterventionDurationLoadEvent>
Business task for intervention duration event
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(InterventionDurationLoadEvent event, PoolKit pk) Implements this method to write the specific task logic to handle the input parameter.protected Longprotected Longprotected booleanskipBundleOperations(Long workOrderOperationId, PoolKit pk) Skips the entire process of predicted duration calculation only when the givenBOWorkOrderOperationis part of an activeBundle.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
LOG
-
-
Constructor Details
-
BTInterventionDurationLoad
public BTInterventionDurationLoad()
-
-
Method Details
-
body
protected void body(InterventionDurationLoadEvent event, PoolKit pk) throws DAException, DAValidateException Description copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<InterventionDurationLoadEvent>- Parameters:
event- the object upon which the task will works onpk- the poolkit containing the reference to the database connection that can be used- Throws:
DAException- in case of database errorDAValidateException- in case of database validation error
-
loadResourcePredictedDuration
protected Long loadResourcePredictedDuration(InterventionDurationLoadInput input, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
loadPredictedDuration
protected Long loadPredictedDuration(InterventionDurationLoadInput input, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
skipBundleOperations
protected boolean skipBundleOperations(Long workOrderOperationId, PoolKit pk) throws DAValidateException, DAException Skips the entire process of predicted duration calculation only when the givenBOWorkOrderOperationis part of an activeBundle.- Parameters:
workOrderOperationId- the givenBOWorkOrderOperationidpk- thePoolKit- Returns:
- true if the predicted duration calculation must be skipped, false otherwise
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-