Class BTFreezingDayValidation
java.lang.Object
overit.geocall.bl.BusinessTask<FreezingDayValidationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<FreezingDayValidationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<FreezingDayValidationEvent>
overit.geocallapp.wfm.orchestrator.scheduling.bl.freezingday.task.BTFreezingDayValidation
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(FreezingDayValidationEvent.class)
public class BTFreezingDayValidation
extends ValidPermissionBusinessTask<FreezingDayValidationEvent>
Business task in order to check the freezing validation.
More specifically, the task checks whether is possible to perform a scheduling action (paste/cut/etc.) basing on the scheduling configuration related to the operation center. When the daily freezing is active, not action on the past is possible. Whereas, when the daily freezing is not active, the possible actions are limited by the
More specifically, the task checks whether is possible to perform a scheduling action (paste/cut/etc.) basing on the scheduling configuration related to the operation center. When the daily freezing is active, not action on the past is possible. Whereas, when the daily freezing is not active, the possible actions are limited by the
OperationCenterFreezingDateCalculationEvent.- Since:
- 17.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckIsFreezingDay(BOWorkShift workShift, BOOperationCenterSchedulingConfiguration schedulingConfiguration, PoolKit poolKit) Checks whether the daily freezing is active or not.protected voidexecute(FreezingDayValidationEvent event, PoolKit poolKit) Checks whether whether is possible to perform a scheduling action.booleanDetermines whether the current state is valid for execution.protected voidValidate the input before the freezing validation.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
-
Constructor Details
-
BTFreezingDayValidation
public BTFreezingDayValidation()
-
-
Method Details
-
execute
protected void execute(FreezingDayValidationEvent event, PoolKit poolKit) throws DAException, DAValidateException Checks whether whether is possible to perform a scheduling action.- Specified by:
executein classValidExecutionBusinessTask<FreezingDayValidationEvent>- Parameters:
event- theFreezingDayValidationEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
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
-
validate
Validate the input before the freezing validation.- Parameters:
input- theFreezingDayValidationInput- Throws:
DAValidateException- the DA validate exception
-
checkIsFreezingDay
protected void checkIsFreezingDay(BOWorkShift workShift, BOOperationCenterSchedulingConfiguration schedulingConfiguration, PoolKit poolKit) throws DAValidateException, DAException Checks whether the daily freezing is active or not. When it is not, it calls theOperationCenterFreezingDateCalculationEvent.- Parameters:
workShift- the work shiftschedulingConfiguration- the operation centerpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-