Class BTWorkOrderInsert
java.lang.Object
overit.geocall.bl.BusinessTask<WorkOrderInsertEvent>
overit.geocallapp.wfm.core.bl.workorder.task.BTWorkOrderInsert
- All Implemented Interfaces:
Serializable,Tool
@Event(WorkOrderInsertEvent.class)
public class BTWorkOrderInsert
extends BusinessTask<WorkOrderInsertEvent>
Business task in order to insert a
WorkOrder.
When the WorkOrderInsertEvent is launched
the BT notices the call and saves the WorkOrder basing on the event's input.- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(WorkOrderInsertEvent event, PoolKit poolKit) Writes the inserted work order id into the event journal.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTWorkOrderInsert
public BTWorkOrderInsert()
-
-
Method Details
-
body
protected void body(WorkOrderInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the inserted work order id into the event journal. Inserts the givenWorkOrderwith all its needed components, i.e. its header and all its operations. All work order's operations are saved together with their component, such as: - the technical object list - the associated data collection sheets - the associated materials - the associated tools The history of the header and of each operation is also updated. A work order validation is finally performed by callingWorkOrderValidationEvent- Specified by:
bodyin classBusinessTask<WorkOrderInsertEvent>- Parameters:
event- the eventpoolKit- the pool kit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-