Class BTTimesheetWorkShiftCancelNotification
java.lang.Object
overit.geocall.bl.BusinessTask<WorkShiftNotificationEvent>
overit.geocallapp.wfm.core.bl.timesheet.task.BTTimesheet<WorkShiftNotificationEvent>
overit.geocallapp.wfm.core.bl.timesheet.notification.task.BTTimesheetWorkShiftCancelNotification
- All Implemented Interfaces:
Serializable,Tool
@Event(WorkShiftNotificationEvent.class)
public class BTTimesheetWorkShiftCancelNotification
extends BTTimesheet<WorkShiftNotificationEvent>
Business task in order cancel all the timesheet tasks related to the given
When the
BOWorkShift. When the
WorkShiftExceptionNotificationEvent is launched
the BT notices the call and cancel all the timesheet tasks basing on the event's input. - Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcancelTask(Long taskId, PoolKit poolKit) protected voidexecute(WorkShiftNotificationEvent event, PoolKit poolKit) loadActiveTasks(Long workShiftId, PoolKit poolKit) protected booleanMethods inherited from class overit.geocallapp.wfm.core.bl.timesheet.task.BTTimesheet
body, checkTimesheetActivationMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTTimesheetWorkShiftCancelNotification
public BTTimesheetWorkShiftCancelNotification()
-
-
Method Details
-
throwInactiveTimesheetException
protected boolean throwInactiveTimesheetException()- Overrides:
throwInactiveTimesheetExceptionin classBTTimesheet<WorkShiftNotificationEvent>
-
execute
protected void execute(WorkShiftNotificationEvent event, PoolKit poolKit) throws DAException, DAValidateException - Specified by:
executein classBTTimesheet<WorkShiftNotificationEvent>- Throws:
DAExceptionDAValidateException
-
loadActiveTasks
protected List<BOTask> loadActiveTasks(Long workShiftId, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
cancelTask
- Throws:
DAValidateExceptionDAException
-