Class BTWorkOrderLoad
java.lang.Object
overit.geocall.bl.BusinessTask<WorkOrderLoadEvent>
overit.geocallapp.wfm.core.bl.workorder.task.BTWorkOrderLoad
- All Implemented Interfaces:
Serializable,Tool
@Event(WorkOrderLoadEvent.class)
public class BTWorkOrderLoad
extends BusinessTask<WorkOrderLoadEvent>
Business task in order to load a
WorkOrder.
When the WorkOrderLoadEvent is launched the BT notices the call and
loads the WorkOrder basing on the event's input.
The work order is loaded by loading each one of the its components: -
TechnicalObjectSearchEvent allows to load TechnicalObject -
WorkOrderHeaderLoadEvent allows to load BOWorkOrderHeader -
WorkOrderOperationsLoadEvent allows to load a list of
BOWorkOrderOperation
Error Code:
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(WorkOrderLoadEvent event, PoolKit poolKit) Writes the loaded work order into the event journal.protected BOWorkOrderHeaderloadHeader(WorkOrderLoadEvent event, PoolKit poolKit) Loads theBOWorkOrderHeaderprotected List<BOWorkOrderOperation> loadOperations(WorkOrderLoadEvent event, PoolKit poolKit) Loads the list of the work order'sBOWorkOrderOperationprotected TechnicalObjectloadTechnicalObject(WorkOrder workOrder, PoolKit poolKit) Loads the work order'sTechnicalObjectstarting from technical object address id.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTWorkOrderLoad
public BTWorkOrderLoad()
-
-
Method Details
-
body
protected void body(WorkOrderLoadEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the loaded work order into the event journal.- Specified by:
bodyin classBusinessTask<WorkOrderLoadEvent>- Parameters:
event- the eventpoolKit- the pool kit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadTechnicalObject
protected TechnicalObject loadTechnicalObject(WorkOrder workOrder, PoolKit poolKit) throws DAValidateException, DAException Loads the work order'sTechnicalObjectstarting from technical object address id.- Parameters:
workOrder- the work orderpoolKit- the pool kit- Returns:
- the technical object
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadHeader
protected BOWorkOrderHeader loadHeader(WorkOrderLoadEvent event, PoolKit poolKit) throws DAValidateException, DAException Loads theBOWorkOrderHeader- Parameters:
event- the eventpoolKit- the pool kit- Returns:
- the BO work order header
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadOperations
protected List<BOWorkOrderOperation> loadOperations(WorkOrderLoadEvent event, PoolKit poolKit) throws DAException, DAValidateException Loads the list of the work order'sBOWorkOrderOperation- Parameters:
event- the eventpoolKit- the pool kit- Returns:
- a list of BO work order operation elements of type BOWorkOrderOperation
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception- See Also:
-