Class BTTeamLocationLoad
java.lang.Object
overit.geocall.bl.BusinessTask<TeamLocationLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<TeamLocationLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<TeamLocationLoadEvent>
overit.geocallapp.wfm.scheduling.bl.teamlocation.task.BTTeamLocationLoad
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(TeamLocationLoadEvent.class)
public class BTTeamLocationLoad
extends ValidPermissionBusinessTask<TeamLocationLoadEvent>
Business task in order to load a
When the
BOTeamLocation. When the
TeamLocationLoadEvent is launched the BT notices the call
and loads the BOTeamLocation basing on the event's input. Required fields:
- Team Location ID
- Since:
- 18.0
- 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(TeamLocationLoadEvent event, PoolKit poolKit) Writes the loadedBOTeamLocationinto the event journal.booleanDetermines whether the current state is valid for execution.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
-
BTTeamLocationLoad
public BTTeamLocationLoad()
-
-
Method Details
-
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
-
execute
protected void execute(TeamLocationLoadEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the loadedBOTeamLocationinto the event journal.- Specified by:
executein classValidExecutionBusinessTask<TeamLocationLoadEvent>- Parameters:
event- theTeamLocationLoadEventpoolKit- thePoolKit- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-