Class BTWorkOrderDurationPredictionExecution
java.lang.Object
overit.geocall.bl.BusinessTask<WorkOrderDurationPredictionExecutionEvent>
overit.geocallapp.wfm.ai.bl.duration.prediction.task.BTWorkOrderDurationPredictionExecution
- All Implemented Interfaces:
Serializable,Tool
@Event(WorkOrderDurationPredictionExecutionEvent.class)
public class BTWorkOrderDurationPredictionExecution
extends BusinessTask<WorkOrderDurationPredictionExecutionEvent>
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(WorkOrderDurationPredictionExecutionEvent event, PoolKit pk) Implements this method to write the specific task logic to handle the input parameter.protected voidprotected BOConfigurationParamsgetConfigurationParameters(Long algorithmId, Long taskId, Long operationsCenterId, PoolKit pk) protected LonggetWOOperationsCenterId(Long workOrderId, PoolKit pk) protected voidlaunchOperationPrediction(Long operationsCenterId, Set<Long> operationIds, PoolKit pk) protected voidlaunchPrediction(BOConfigurationParams configurationParams, Set<Long> operationIds, PoolKit pk) protected voidlaunchResourcePrediction(Long operationsCenterId, Set<Long> operationIds, PoolKit pk) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTWorkOrderDurationPredictionExecution
public BTWorkOrderDurationPredictionExecution()
-
-
Method Details
-
body
protected void body(WorkOrderDurationPredictionExecutionEvent 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<WorkOrderDurationPredictionExecutionEvent>- 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
-
executePrediction
protected void executePrediction(WorkOrderDurationPredictionExecutionEventInput input, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getWOOperationsCenterId
protected Long getWOOperationsCenterId(Long workOrderId, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
launchOperationPrediction
protected void launchOperationPrediction(Long operationsCenterId, Set<Long> operationIds, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
launchResourcePrediction
protected void launchResourcePrediction(Long operationsCenterId, Set<Long> operationIds, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getConfigurationParameters
protected BOConfigurationParams getConfigurationParameters(Long algorithmId, Long taskId, Long operationsCenterId, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
launchPrediction
protected void launchPrediction(BOConfigurationParams configurationParams, Set<Long> operationIds, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-