Class BTPrepopulateOssCacheCancellation
java.lang.Object
overit.geocall.bl.BusinessTask<SchedulePreProcessManualCancelEvent>
overit.geocallapp.wfm.core.bl.schedule.task.BTPrepopulateOssCache<SchedulePreProcessManualCancelEvent>
overit.geocallapp.wfm.core.bl.schedule.task.BTPrepopulateOssCacheCancellation
- All Implemented Interfaces:
Serializable,Tool
@Event(value=SchedulePreProcessManualCancelEvent.class,
priority=100)
public class BTPrepopulateOssCacheCancellation
extends BTPrepopulateOssCache<SchedulePreProcessManualCancelEvent>
Business task for prepopulate the Oss Cache.
The scheduling cancellation task will find the OSS results in the cache instead of calling GISware for each activity to cancel
The scheduling cancellation task will find the OSS results in the cache instead of calling GISware for each activity 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.protected List<overit.geocallapp.wfm.scheduler.oss.OssPoint[]> buildOssPointList(org.locationtech.jts.geom.Coordinate[] pointList, overit.geocallapp.wfm.scheduler.oss.OssParams param, List<overit.geocallapp.wfm.scheduler.oss.OssParams> ossParams) protected org.locationtech.jts.geom.Coordinate[]findPoints(Collection<Long> schedulingsToCancel, Map<Long, BOScheduling> schedulingsBySchedulingId, List<BOScheduling> assignedSchedulings, Map<Long, BOAgenda> agendaByAgendaId, Map<Long, BOAppointment> appointmentByAppointmentId, PoolKit poolKit) Methods inherited from class overit.geocallapp.wfm.core.bl.schedule.task.BTPrepopulateOssCache
calculateMultiplePointsRoadAndTimeDistance, getOssSpace, getResource, processRoute, storeOssResultsMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTPrepopulateOssCacheCancellation
public BTPrepopulateOssCacheCancellation()
-
-
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
-
buildOssPointList
protected List<overit.geocallapp.wfm.scheduler.oss.OssPoint[]> buildOssPointList(org.locationtech.jts.geom.Coordinate[] pointList, overit.geocallapp.wfm.scheduler.oss.OssParams param, List<overit.geocallapp.wfm.scheduler.oss.OssParams> ossParams) - Specified by:
buildOssPointListin classBTPrepopulateOssCache<SchedulePreProcessManualCancelEvent>
-
findPoints
protected org.locationtech.jts.geom.Coordinate[] findPoints(Collection<Long> schedulingsToCancel, Map<Long, BOScheduling> schedulingsBySchedulingId, List<BOScheduling> assignedSchedulings, Map<Long, throws DAException, DAValidateExceptionBOAgenda> agendaByAgendaId, Map<Long, BOAppointment> appointmentByAppointmentId, PoolKit poolKit) - Throws:
DAExceptionDAValidateException
-