Class BTUpdateStatusManualScheduling
java.lang.Object
overit.geocall.bl.BusinessTask<UpdateStatusManualSchedulingEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<UpdateStatusManualSchedulingEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<UpdateStatusManualSchedulingEvent>
overit.geocallapp.wfm.orchestrator.scheduling.bl.activityassignment.task.BTUpdateStatusManualScheduling
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(UpdateStatusManualSchedulingEvent.class)
public class BTUpdateStatusManualScheduling
extends ValidPermissionBusinessTask<UpdateStatusManualSchedulingEvent>
Business task in order to update the
When the
BOAppointment, BOAgenda, work order, operation status. When the
UpdateStatusManualSchedulingEvent is launched
the BT notices the call and update the BOAppointment, BOAgenda status and then call
WorkOrderOperationSchedulingChangeEvent to notify work order module of the work order and operation status update.
Permission:
Error Code:
- Since:
- 17.0
- See Also:
- GCApi:
- task
-
Field Summary
FieldsFields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(UpdateStatusManualSchedulingEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.protected SchedulingIntegrationServicegetIntegrationService(PoolKit poolKit) booleanDetermines whether the current state is valid for execution.protected voidnotifyActivityScheduled(PoolKit poolKit) Notify that the agenda has been automatically validatedprotected voidnotifyWorkOrderOperationScheduled(PoolKit poolKit) Notify that the work order/operation status must be updatedprotected voidupdateAgendaStatus(PoolKit poolKit) Update the status of the agendaprotected voidupdateAppointmentStatus(PoolKit poolKit) Update the status of the appointmentMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
eventInput
-
-
Constructor Details
-
BTUpdateStatusManualScheduling
public BTUpdateStatusManualScheduling()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise
-
execute
protected void execute(UpdateStatusManualSchedulingEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<UpdateStatusManualSchedulingEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
updateAppointmentStatus
Update the status of the appointment- Parameters:
poolKit-- Throws:
DAExceptionDAValidateException
-
updateAgendaStatus
Update the status of the agenda- Parameters:
poolKit-- Throws:
DAExceptionDAValidateException
-
notifyActivityScheduled
Notify that the agenda has been automatically validated- Parameters:
poolKit-- Throws:
DAValidateExceptionDAException
-
getIntegrationService
protected SchedulingIntegrationService getIntegrationService(PoolKit poolKit) throws DAValidateException - Throws:
DAValidateException
-
notifyWorkOrderOperationScheduled
protected void notifyWorkOrderOperationScheduled(PoolKit poolKit) throws DAValidateException, DAException Notify that the work order/operation status must be updated- Parameters:
poolKit-- Throws:
DAValidateExceptionDAException
-