Class BTPrepopulateCancellationCache
java.lang.Object
overit.geocall.bl.BusinessTask<SchedulePreProcessManualCancelEvent>
overit.geocallapp.wfm.core.bl.schedule.cache.task.BTPrepopulateCancellationCache
- All Implemented Interfaces:
Serializable,Tool
@Event(SchedulePreProcessManualCancelEvent.class)
public class BTPrepopulateCancellationCache
extends BusinessTask<SchedulePreProcessManualCancelEvent>
Business task for prepopulate the Scheduling Cache.
The cancellation task will find the scheduling data into the cache instead executing queries for each scheduling to cancel
The cancellation task will find the scheduling data into the cache instead executing queries for each scheduling to cancel
- Since:
- 18.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(SchedulePreProcessManualCancelEvent schedulePreProcessManualCancelEvent, PoolKit poolKit) Implements this method to write the specific task logic to handle the input parameter.buildPositionCache(Collection<Long> workshifts, PoolKit poolKit) protected Collection<Long> getWorkshifts(Collection<Long> schedulings, PoolKit poolKit) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTPrepopulateCancellationCache
public BTPrepopulateCancellationCache()
-
-
Method Details
-
body
protected void body(SchedulePreProcessManualCancelEvent schedulePreProcessManualCancelEvent, 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<SchedulePreProcessManualCancelEvent>- Parameters:
schedulePreProcessManualCancelEvent- 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
-
buildPositionCache
protected Map<Long,org.locationtech.jts.geom.Coordinate> buildPositionCache(Collection<Long> workshifts, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getWorkshifts
protected Collection<Long> getWorkshifts(Collection<Long> schedulings, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-