Class BTSchedulingNotification
java.lang.Object
overit.geocall.bl.BusinessTask<SchedulingNotificationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<SchedulingNotificationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<SchedulingNotificationEvent>
overit.geocallapp.wfm.core.bl.schedule.notification.BTSchedulingNotification
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(SchedulingNotificationEvent.class)
public class BTSchedulingNotification
extends ValidPermissionBusinessTask<SchedulingNotificationEvent>
Business task in order receipt the notification of scheduling actions.
- 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(SchedulingNotificationEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.booleanDetermines whether the current state is valid for execution.protected voidlaunchCheckCancelEvent(PoolKit poolKit) LaunchScheduleCheckManualCancelEventin order to check if there are some problems after the scheduling removal of a work order operation.protected voidlaunchCheckManualPasteEvent(PoolKit poolKit) protected voidlaunchCompleteManualActionEvent(Long action, PoolKit poolKit) LaunchScheduleCompleteManualActionEventwith the work order operation defined in the input event and the set of all schedulings changed in the scheduling action.protected voidlaunchCompleteValidationEvent(PoolKit poolKit) LaunchScheduleCompleteValidationEventwith the work order operation defined in the input event.protected voidnotifyPlanningAction(Long action, PoolKit poolKit) protected voidnotifyPlanningAppointment(PoolKit poolKit) protected voidnotifyPlanningWorkOrder(PoolKit poolKit) Notify the planning work order action.Methods 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
-
BTSchedulingNotification
public BTSchedulingNotification()
-
-
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(SchedulingNotificationEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<SchedulingNotificationEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
notifyPlanningAction
protected void notifyPlanningAction(Long action, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
notifyPlanningAppointment
- Throws:
DAValidateExceptionDAException
-
notifyPlanningWorkOrder
Notify the planning work order action.- Parameters:
poolKit- thePoolKit- Throws:
DAValidateExceptionDAException
-
launchCompleteManualActionEvent
protected void launchCompleteManualActionEvent(Long action, PoolKit poolKit) throws DAException, DAValidateException LaunchScheduleCompleteManualActionEventwith the work order operation defined in the input event and the set of all schedulings changed in the scheduling action.- Parameters:
poolKit- thePoolKit- Throws:
DAExceptionDAValidateException
-
launchCompleteValidationEvent
protected void launchCompleteValidationEvent(PoolKit poolKit) throws DAException, DAValidateException LaunchScheduleCompleteValidationEventwith the work order operation defined in the input event.- Parameters:
poolKit- thePoolKit- Throws:
DAExceptionDAValidateException
-
launchCheckManualPasteEvent
- Throws:
DAValidateExceptionDAException
-
launchCheckCancelEvent
LaunchScheduleCheckManualCancelEventin order to check if there are some problems after the scheduling removal of a work order operation.- Parameters:
poolKit- thePoolKit- Throws:
DAExceptionDAValidateException
-