Class BTWorkOrderUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<WorkOrderUpdateEvent>
overit.geocallapp.wfm.core.bl.workorder.task.BTWorkOrderUpdate
- All Implemented Interfaces:
Serializable,Tool
@Event(WorkOrderUpdateEvent.class)
public class BTWorkOrderUpdate
extends BusinessTask<WorkOrderUpdateEvent>
Business task in order to update a
WorkOrder.
When the WorkOrderUpdateEvent is launched the BT notices the call and
updates the WorkOrder basing on the event's input.
Error Code:
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(WorkOrderUpdateEvent event, PoolKit poolKit) Updates the givenWorkOrderwith all its needed components, i.e. its header and all its operations.protected voidcallWorkOrderSave(WorkOrderUpdateEvent event, PoolKit poolKit) protected booleancanUserModifyWorkOrder(WorkOrderUpdateEvent event, PoolKit poolKit, overit.geocallapp.wfm.util.WFMIdentity identity) protected voidcheck(WorkOrderUpdateEvent event, PoolKit poolKit) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTWorkOrderUpdate
public BTWorkOrderUpdate()
-
-
Method Details
-
body
protected void body(WorkOrderUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates the givenWorkOrderwith all its needed components, i.e. its header and all its operations. All work order's operations are updated together with their component, such as:- the technical object list
- the associated data collection sheets
- the associated materials
- the associated tools
WorkOrderValidationEvent- Specified by:
bodyin classBusinessTask<WorkOrderUpdateEvent>- Parameters:
event- the eventpoolKit- the pool kit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
check
protected void check(WorkOrderUpdateEvent event, PoolKit poolKit) throws DAValidateException, DAException - Parameters:
event-poolKit-- Throws:
DAExceptionDAValidateException
-
canUserModifyWorkOrder
protected boolean canUserModifyWorkOrder(WorkOrderUpdateEvent event, PoolKit poolKit, overit.geocallapp.wfm.util.WFMIdentity identity) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
callWorkOrderSave
protected void callWorkOrderSave(WorkOrderUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-