Class BTWorkOrderAppointmentUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<WorkOrderAppointmentUpdateEvent>
overit.geocallapp.wfm.core.bl.workorder.task.BTWorkOrderAppointmentUpdate
- All Implemented Interfaces:
Serializable,Tool
@Event(WorkOrderAppointmentUpdateEvent.class)
public class BTWorkOrderAppointmentUpdate
extends BusinessTask<WorkOrderAppointmentUpdateEvent>
Business task in order to update a
When the
WorkOrder appointment. When the
WorkOrderAppointmentUpdateEvent is launched the BT notices
the call and updates the WorkOrder appointments basing on the event's
input. Error Code:
Codes.EX_ODL021: The WO status does not allow editing the appointment
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(WorkOrderAppointmentUpdateEvent event, PoolKit poolKit) Implements this method to write the specific task logic to handle the input parameter.protected voidcheckWorkOrderState(Long workOrderStateId) protected WorkOrderloadWorkOrder(Long workOrderId, PoolKit poolKit) protected voidupdateWorkOrderHeader(BOWorkOrderHeader workOrderHeader, WorkOrderAppointmentUpdateInput appointmentUpdateInput) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTWorkOrderAppointmentUpdate
public BTWorkOrderAppointmentUpdate()
-
-
Method Details
-
body
protected void body(WorkOrderAppointmentUpdateEvent 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<WorkOrderAppointmentUpdateEvent>- 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
-
loadWorkOrder
protected WorkOrder loadWorkOrder(Long workOrderId, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
checkWorkOrderState
- Throws:
DAValidateException
-
updateWorkOrderHeader
protected void updateWorkOrderHeader(BOWorkOrderHeader workOrderHeader, WorkOrderAppointmentUpdateInput appointmentUpdateInput)
-