Class BTWorkOrderOperationInterventionGroupLoad
java.lang.Object
overit.geocall.bl.BusinessTask<WorkOrderOperationInterventionGroupLoadEvent>
overit.geocallapp.wfm.orchestrator.workorders.bl.operation.task.BTWorkOrderOperationInterventionGroupLoad
- All Implemented Interfaces:
Serializable,Tool
@Event(WorkOrderOperationInterventionGroupLoadEvent.class)
public class BTWorkOrderOperationInterventionGroupLoad
extends BusinessTask<WorkOrderOperationInterventionGroupLoadEvent>
Business task to load the needed intervention group and
BOActivity for the given BOWorkOrderOperation. Required fields:
- work order operation
- work order type id
- Since:
- 17.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(WorkOrderOperationInterventionGroupLoadEvent event, PoolKit poolKit) Writes the needed intervention group andBOActivityfor the givenBOWorkOrderOperation.protected WorkOrdersIntegrationServicegetIntegrationService(PoolKit poolKit) Retrieves the WorkOrdersIntegrationService instance.protected List<BOWorkOrderOperationTypeActivity> loadWorkOrderOperationTypeActivity(WorkOrderOperationInterventionGroupLoadInput input, PoolKit poolKit) Loads the work order operation type activity relations starting from the given work order type and work order operation type.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTWorkOrderOperationInterventionGroupLoad
public BTWorkOrderOperationInterventionGroupLoad()
-
-
Method Details
-
body
protected void body(WorkOrderOperationInterventionGroupLoadEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the needed intervention group andBOActivityfor the givenBOWorkOrderOperation.- Specified by:
bodyin classBusinessTask<WorkOrderOperationInterventionGroupLoadEvent>- Parameters:
event- theWorkOrderOperationInterventionGroupLoadEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadWorkOrderOperationTypeActivity
protected List<BOWorkOrderOperationTypeActivity> loadWorkOrderOperationTypeActivity(WorkOrderOperationInterventionGroupLoadInput input, PoolKit poolKit) throws DAValidateException, DAException Loads the work order operation type activity relations starting from the given work order type and work order operation type.- Parameters:
input- theWorkOrderOperationInterventionGroupLoadInputpoolKit- thePoolKit- Returns:
- a list of loaded
BOWorkOrderOperationTypeActivity - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getIntegrationService
protected WorkOrdersIntegrationService getIntegrationService(PoolKit poolKit) throws DAValidateException Retrieves the WorkOrdersIntegrationService instance. If the instance hasn't been created yet, it will be created and stored for future use.- Parameters:
poolKit- ThePoolKit.- Returns:
- The
WorkOrdersIntegrationServiceinstance. - Throws:
DAValidateException- If any validation error occurs.
-