Class BTWorkOrderComplete
java.lang.Object
overit.geocall.bl.BusinessTask<WorkOrderCompleteEvent>
overit.geocallapp.wfm.core.bl.workorder.task.BTWorkOrderComplete
- All Implemented Interfaces:
Serializable,Tool
@Event(WorkOrderCompleteEvent.class)
public class BTWorkOrderComplete
extends BusinessTask<WorkOrderCompleteEvent>
Business task to complete the work order creation
This task takes a workorder in DRAFT state and calculate the new state, launching also the activities that are usually done in the workorder creation.
This task takes a workorder in DRAFT state and calculate the new state, launching also the activities that are usually done in the workorder creation.
Required fields:
- work order id
Error Code:
Codes.C270_1550: There is an active structure of booking typeCodes.C270_1561: Cannot complete a Work Order without operations
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(WorkOrderCompleteEvent event, PoolKit poolKit) Implements this method to write the specific task logic to handle the input parameter.protected voidcalculateNewStatus(PoolKit poolKit) protected voidprotected voidmanageActivityLinkRules(PoolKit poolKit) protected voidmanageGAERules(PoolKit poolKit) protected voidmanagePurchaseDocuments(PoolKit poolKit) protected voidsaveAndReload(PoolKit poolKit) protected voidvalidateWorkOrder(PoolKit poolKit) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
workOrder
-
eventInput
-
-
Constructor Details
-
BTWorkOrderComplete
public BTWorkOrderComplete()
-
-
Method Details
-
body
protected void body(WorkOrderCompleteEvent 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<WorkOrderCompleteEvent>- 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
-
checkWorkOrder
- Throws:
DAValidateException
-
calculateNewStatus
- Throws:
DAExceptionDAValidateException
-
saveAndReload
- Throws:
DAValidateExceptionDAException
-
managePurchaseDocuments
- Throws:
DAExceptionDAValidateException
-
manageGAERules
- Throws:
DAValidateExceptionDAException
-
manageActivityLinkRules
- Throws:
DAValidateExceptionDAException
-
validateWorkOrder
- Throws:
DAValidateExceptionDAException
-