Class BTAgendaInsert
java.lang.Object
overit.geocall.bl.BusinessTask<AgendaInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<AgendaInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<AgendaInsertEvent>
overit.geocallapp.wfm.scheduling.bl.agenda.task.BTAgendaInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(AgendaInsertEvent.class)
public class BTAgendaInsert
extends ValidPermissionBusinessTask<AgendaInsertEvent>
Business task in order to insert a
When the
BOAgenda. When the
AgendaInsertEvent is launched the BT notices the call and
inserts the BOAgenda basing on the event's input. Error Code:
- Since:
- 17.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 voidcompleteAgendaData(BOAgenda agenda) Complete the data of theBOAgendaprotected voidexecute(AgendaInsertEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.booleanDetermines whether the current state is valid for execution.protected voidChecks if the insertion is possible by performing some validations on the givenBOAgenda.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
-
BTAgendaInsert
public BTAgendaInsert()
-
-
Method Details
-
execute
protected void execute(AgendaInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<AgendaInsertEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
completeAgendaData
Complete the data of theBOAgenda- Parameters:
agenda- theBOAgenda
-
validate
Checks if the insertion is possible by performing some validations on the givenBOAgenda.- Parameters:
agenda- theBOAgendapoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
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
-