Class BTSchedulingSingleValidationCheck
java.lang.Object
overit.geocall.bl.BusinessTask<SchedulePreProcessManualPasteEvent>
overit.geocallapp.wfm.core.bl.schedule.task.BTSchedulingSingleValidationCheck
- All Implemented Interfaces:
Serializable,Tool
@Event(value=SchedulePreProcessManualPasteEvent.class,
priority=50)
public class BTSchedulingSingleValidationCheck
extends BusinessTask<SchedulePreProcessManualPasteEvent>
The task performs a set of predefined validation checks before starting the scheduling process,
ensuring that all necessary criteria are met before proceeding further.
This task is executed only once for the entire batch of work orders, avoiding redundant operations for each individual item.
If any of the checks fail, the task raises an exception, halting the process and preventing potential errors.
- Since:
- 18.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(SchedulePreProcessManualPasteEvent schedulePreProcessManualPasteEvent, PoolKit poolKit) Implements this method to write the specific task logic to handle the input parameter.protected voidfreezeControl(Long operationCenter, Long workshiftId, Long schedulingModel, Boolean useTimeLimit, WorkShiftCache workshiftCache, ResourceCache resourceCache) protected voidgenericPermissionsCheck(Long workshift, SchedulingCache schedulingCache, PooledConnection conn) protected voidthrowGenericPermissionError(Long resource, PooledConnection conn) protected voidworkshiftSchedulabilityCheck(Long workshift, PooledConnection conn) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTSchedulingSingleValidationCheck
public BTSchedulingSingleValidationCheck()
-
-
Method Details
-
body
protected void body(SchedulePreProcessManualPasteEvent schedulePreProcessManualPasteEvent, 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<SchedulePreProcessManualPasteEvent>- Parameters:
schedulePreProcessManualPasteEvent- 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
-
workshiftSchedulabilityCheck
protected void workshiftSchedulabilityCheck(Long workshift, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
genericPermissionsCheck
protected void genericPermissionsCheck(Long workshift, SchedulingCache schedulingCache, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
freezeControl
protected void freezeControl(Long operationCenter, Long workshiftId, Long schedulingModel, Boolean useTimeLimit, WorkShiftCache workshiftCache, ResourceCache resourceCache) throws DAValidateException - Throws:
DAValidateException
-
throwGenericPermissionError
protected void throwGenericPermissionError(Long resource, PooledConnection conn) throws DAValidateException - Throws:
DAValidateException
-