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 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 given WorkOrder with 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 calling WorkOrderValidationEvent
      Specified by:
      body in class BusinessTask<WorkOrderInsertEvent>
      Parameters:
      event - the event
      poolKit - the pool kit
      Throws:
      DAException - the DA exception
      DAValidateException - the DA validate exception