Class BTClockingUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<ClockingUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ClockingUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ClockingUpdateEvent>
overit.geocallapp.wfm.core.bl.schedule.schedulingresource.clocking.task.BTClockingUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ClockingUpdateEvent.class)
public class BTClockingUpdate
extends ValidPermissionBusinessTask<ClockingUpdateEvent>
Business task in order to update a
When the
BOClocking. When the
ClockingUpdateEvent is launched
the BT notices the call and updates 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(ClockingUpdateEvent event, PoolKit pk) Writes the updated clocking 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
-
BTClockingUpdate
public BTClockingUpdate()
-
-
Method Details
-
execute
protected void execute(ClockingUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Writes the updated clocking into the event journal.- Specified by:
executein classValidExecutionBusinessTask<ClockingUpdateEvent>- Parameters:
event- theClockingUpdateEventpk- 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
-