Class BTTimesheetResourceShiftExceptionCancelNotification
java.lang.Object
overit.geocall.bl.BusinessTask<WorkShiftExceptionNotificationEvent>
overit.geocallapp.wfm.core.bl.timesheet.task.BTTimesheet<WorkShiftExceptionNotificationEvent>
overit.geocallapp.wfm.core.bl.timesheet.notification.task.BTTimesheetResourceShiftExceptionCancelNotification
- All Implemented Interfaces:
Serializable,Tool
@Event(WorkShiftExceptionNotificationEvent.class)
public class BTTimesheetResourceShiftExceptionCancelNotification
extends BTTimesheet<WorkShiftExceptionNotificationEvent>
Business task in order cancel all the automatic timesheet tasks related to the given
When the
BOWorkShiftException. When the
WorkShiftExceptionNotificationEvent is launched
the BT notices the call and cancel all the automatic timesheet tasks basing on the event's input. - Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcancelAutomaticTimesheetTask(BOWorkShiftException receipt, PoolKit poolKit) protected voidexecute(WorkShiftExceptionNotificationEvent event, PoolKit poolKit) protected booleanisAbsenceResourceShiftException(BOWorkShiftException receipt, PoolKit poolKit) protected BOReceiptTypeloadReceiptType(Long receiptType, PoolKit poolKit) protected BOShiftExceptionClassloadShiftExceptionClass(Long shiftExceptionClass, 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
-
BTTimesheetResourceShiftExceptionCancelNotification
public BTTimesheetResourceShiftExceptionCancelNotification()
-
-
Method Details
-
throwInactiveTimesheetException
protected boolean throwInactiveTimesheetException()- Overrides:
throwInactiveTimesheetExceptionin classBTTimesheet<WorkShiftExceptionNotificationEvent>
-
execute
protected void execute(WorkShiftExceptionNotificationEvent event, PoolKit poolKit) throws DAException, DAValidateException - Specified by:
executein classBTTimesheet<WorkShiftExceptionNotificationEvent>- Throws:
DAExceptionDAValidateException
-
isAbsenceResourceShiftException
protected boolean isAbsenceResourceShiftException(BOWorkShiftException receipt, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadReceiptType
protected BOReceiptType loadReceiptType(Long receiptType, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadShiftExceptionClass
protected BOShiftExceptionClass loadShiftExceptionClass(Long shiftExceptionClass, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
cancelAutomaticTimesheetTask
protected void cancelAutomaticTimesheetTask(BOWorkShiftException receipt, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-