Class BTSaveAIProcess
java.lang.Object
overit.geocall.bl.BusinessTask<WorkOrderValidationEvent>
overit.geocallapp.wfm.ai.bl.processing.task.BTSaveAIProcess
- All Implemented Interfaces:
Serializable,Tool
@Event(WorkOrderValidationEvent.class)
public class BTSaveAIProcess
extends BusinessTask<WorkOrderValidationEvent>
Task called when a order is validated. It has as input the work order, it
search all the active predict configuration and for each it insert a record
in
DAOAIProcessExecutionHistory containing the order's operation id and
some other info related.- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(WorkOrderValidationEvent event, PoolKit poolKit) Implements this method to write the specific task logic to handle the input parameter.protected List<BOConfigurationParams> getValidConfigurations(Long operationCenterId, PoolKit poolKit) Get the configuration parameters given an operation center and a task.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
LOG
-
-
Constructor Details
-
BTSaveAIProcess
public BTSaveAIProcess()
-
-
Method Details
-
body
protected void body(WorkOrderValidationEvent event, PoolKit poolKit) 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<WorkOrderValidationEvent>- Parameters:
event- the object upon which the task will works onpoolKit- 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
-
getValidConfigurations
protected List<BOConfigurationParams> getValidConfigurations(Long operationCenterId, PoolKit poolKit) throws DAValidateException, DAException Get the configuration parameters given an operation center and a task.- Parameters:
operationCenterId- the operation center idSpoolKit-- Returns:
- a list of
BOConfigurationParamsfor each configuration founded - Throws:
DAValidateExceptionDAException
-