Class BTClockingInsert
java.lang.Object
overit.geocall.bl.BusinessTask<ClockingInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ClockingInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ClockingInsertEvent>
overit.geocallapp.wfm.core.bl.schedule.schedulingresource.clocking.task.BTClockingInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ClockingInsertEvent.class)
public class BTClockingInsert
extends ValidPermissionBusinessTask<ClockingInsertEvent>
Business task in order to insert a
When the
BOClocking. When the
ClockingInsertEvent is launched
the BT notices the call and inserts the BOClocking basing on the event's input. - Since:
- 9.2
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(ClockingInsertEvent event, PoolKit pk) Writes the inserted clocking id into the event journal.booleanDetermines whether the current state is valid for execution.protected voidlaunchClockingNotification(Long clockingId, PoolKit poolKit) Methods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTClockingInsert
public BTClockingInsert()
-
-
Method Details
-
execute
protected void execute(ClockingInsertEvent event, PoolKit pk) throws DAException, DAValidateException Writes the inserted clocking id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<ClockingInsertEvent>- Parameters:
event- theClockingInsertEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
launchClockingNotification
protected void launchClockingNotification(Long clockingId, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise
-