Class BTWorkOrderActivation
java.lang.Object
overit.geocall.bl.BusinessTask<WorkOrderActivationEvent>
overit.geocallapp.wfm.core.bl.workorder.task.BTWorkOrderActivation
- All Implemented Interfaces:
Serializable,Tool
@Event(WorkOrderActivationEvent.class)
public class BTWorkOrderActivation
extends BusinessTask<WorkOrderActivationEvent>
Business task to activate the work order
This task takes a work order in DRAFT state and calculate the new state, launching also the activities that are usually done in the work order creation.
This task takes a work order in DRAFT state and calculate the new state, launching also the activities that are usually done in the work order creation.
Required fields:
- work order id
Error Code:
- Since:
- 16.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(WorkOrderActivationEvent event, PoolKit poolKit) Implements this method to write the specific task logic to handle the input parameter.protected voidcalculateNewStatus(PoolKit poolKit) Calculates the new status of the header and the operations of the work order.protected voidChecks if the work order can be activatedprotected voidSaves the work order.protected voidvalidateWorkOrder(PoolKit poolKit) Launches the validation event for the work orderMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
workOrder
-
eventInput
-
-
Constructor Details
-
BTWorkOrderActivation
public BTWorkOrderActivation()
-
-
Method Details
-
body
protected void body(WorkOrderActivationEvent 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<WorkOrderActivationEvent>- 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
Checks if the work order can be activated- Throws:
DAValidateException
-
calculateNewStatus
Calculates the new status of the header and the operations of the work order.- Parameters:
poolKit- thePoolKit- Throws:
DAExceptionDAValidateException
-
save
Saves the work order.- Parameters:
poolKit- thePoolKit- Throws:
DAExceptionDAValidateException
-
validateWorkOrder
Launches the validation event for the work order- Parameters:
poolKit- thePoolKit- Throws:
DAExceptionDAValidateException
-