Class BTAlignWorkShiftSchedulings
java.lang.Object
overit.geocall.bl.BusinessTask<AlignWorkShiftSchedulingsEvent>
overit.geocallapp.wfm.core.bl.schedule.task.BTAlignWorkShiftSchedulings
- All Implemented Interfaces:
Serializable,Tool
@Event(AlignWorkShiftSchedulingsEvent.class)
public class BTAlignWorkShiftSchedulings
extends BusinessTask<AlignWorkShiftSchedulingsEvent>
Business task in order to recalculate the scheduling route informations between
the given list of
When the
BOWorkShift ids. When the
BundleSchedulingRecalculationEvent is launched
the BT notices the call and aligns the scheduling route informations basing on the event's input. - Since:
- 10.1
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidalignWorkShiftSchedulings(Long workShiftId, Long schedulingModel, PoolKit poolKit) Aligns all the needed scheduling informations that are related to the givenBOWorkShift.protected voidbody(AlignWorkShiftSchedulingsEvent event, PoolKit poolKit) Aligns the scheduling route informations of the givenBOWorkShiftidsprotected DBViewloadScheduling(Long workShiftId, Long schedulingModel, PoolKit poolKit) Loads the not cancelled scheduling from the givenBOWorkShiftidMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTAlignWorkShiftSchedulings
public BTAlignWorkShiftSchedulings()
-
-
Method Details
-
body
protected void body(AlignWorkShiftSchedulingsEvent event, PoolKit poolKit) throws DAException, DAValidateException Aligns the scheduling route informations of the givenBOWorkShiftids- Specified by:
bodyin classBusinessTask<AlignWorkShiftSchedulingsEvent>- Parameters:
event- theAlignWorkShiftSchedulingsEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadScheduling
protected DBView loadScheduling(Long workShiftId, Long schedulingModel, PoolKit poolKit) throws DAException, DAValidateException Loads the not cancelled scheduling from the givenBOWorkShiftid- Parameters:
workShiftId- the consideredBOWorkShiftidpoolKit- thePoolKit- Returns:
- the related schedulings
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
alignWorkShiftSchedulings
protected void alignWorkShiftSchedulings(Long workShiftId, Long schedulingModel, PoolKit poolKit) throws DAException, DAValidateException Aligns all the needed scheduling informations that are related to the givenBOWorkShift.- Parameters:
workShiftId- theBOWorkShiftidpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-