Class BTOutcomeReasonEncodedNoteDelete
java.lang.Object
overit.geocall.bl.BusinessTask<OutcomeReasonEncodedNoteDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<OutcomeReasonEncodedNoteDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<OutcomeReasonEncodedNoteDeleteEvent>
overit.geocallapp.wfm.execution.bl.outcome.reason.encodednote.task.BTOutcomeReasonEncodedNoteDelete
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(OutcomeReasonEncodedNoteDeleteEvent.class)
public class BTOutcomeReasonEncodedNoteDelete
extends ValidPermissionBusinessTask<OutcomeReasonEncodedNoteDeleteEvent>
Business task in order to delete a
When the
Error Code:
BOOutcomeReasonEncodedNote. When the
OutcomeReasonEncodedNoteDeleteEvent is launched the BT notices the call and deletes the
BOOutcomeReasonEncodedNote basing on the event's input. Error Code:
Codes.PROPERTY_REQUIRED: Property required
- 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(OutcomeReasonEncodedNoteDeleteEvent event, PoolKit poolKit) Remove the givenBOOutcomeReasonEncodedNoteoutcome reason encoded note.booleanDetermines whether the current state is valid for execution.protected voidvalidate(BOOutcomeReasonEncodedNote outcomeReasonEncodedNote, PoolKit pk) Check if the deletion is possible by performing some validations on the givenBOOutcomeReasonEncodedNoteMethods 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
-
BTOutcomeReasonEncodedNoteDelete
public BTOutcomeReasonEncodedNoteDelete()
-
-
Method Details
-
execute
protected void execute(OutcomeReasonEncodedNoteDeleteEvent event, PoolKit poolKit) throws DAException, DAValidateException Remove the givenBOOutcomeReasonEncodedNoteoutcome reason encoded note.- Specified by:
executein classValidExecutionBusinessTask<OutcomeReasonEncodedNoteDeleteEvent>- Parameters:
event- theOutcomeReasonEncodedNoteDeleteEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BOOutcomeReasonEncodedNote outcomeReasonEncodedNote, PoolKit pk) throws DAValidateException, DAException Check if the deletion is possible by performing some validations on the givenBOOutcomeReasonEncodedNote- Parameters:
outcomeReasonEncodedNote- the outcome reason encoded notepk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate 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
-