Class BTWorkOrderStateUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<WorkOrderStateUpdateEvent>
overit.geocallapp.wfm.core.bl.workorder.task.BTWorkOrderStateUpdate
- All Implemented Interfaces:
Serializable,Tool
@Event(WorkOrderStateUpdateEvent.class)
public class BTWorkOrderStateUpdate
extends BusinessTask<WorkOrderStateUpdateEvent>
Business task in order to update the state of a
WorkOrder.
When the WorkOrderStateUpdateEvent is launched
the BT notices the call and update the WorkOrder state basing on the event's input.- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(WorkOrderStateUpdateEvent event, PoolKit poolKit) Implements this method to write the specific task logic to handle the input parameter.protected BOWorkOrderHeaderloadWorkOrderHeader(Long workOrderId, PoolKit poolKit) protected HashGetterMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTWorkOrderStateUpdate
public BTWorkOrderStateUpdate()
-
-
Method Details
-
body
protected void body(WorkOrderStateUpdateEvent 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<WorkOrderStateUpdateEvent>- 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
-
loadWorkOrderHeader
protected BOWorkOrderHeader loadWorkOrderHeader(Long workOrderId, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
prepareUpdateValues
-