Class BTOutcomeReasonUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<OutcomeReasonUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<OutcomeReasonUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<OutcomeReasonUpdateEvent>
overit.geocallapp.wfm.execution.bl.outcome.reason.task.BTOutcomeReasonUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(OutcomeReasonUpdateEvent.class)
public class BTOutcomeReasonUpdate
extends ValidPermissionBusinessTask<OutcomeReasonUpdateEvent>
Business task in order to update a
BOOutcomeReason.
When the OutcomeReasonUpdateEvent is launched
the BT notices the call and updates the BOOutcomeReason basing on the event's input.
Permission:
Error Code:
Codes.PROPERTY_REQUIRED: Missing required propertyCodes.MISSING_REQUIRED_MULTILANGUAGE_VALUES: Missing required multilanguage values for the property
- 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(OutcomeReasonUpdateEvent event, PoolKit pk) Updates theBOOutcomeReason.booleanDetermines whether the current state is valid for execution.protected voidvalidate(BOOutcomeReason outcomeReason, PoolKit pk) 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
-
BTOutcomeReasonUpdate
public BTOutcomeReasonUpdate()
-
-
Method Details
-
execute
protected void execute(OutcomeReasonUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Updates theBOOutcomeReason.- Specified by:
executein classValidExecutionBusinessTask<OutcomeReasonUpdateEvent>- Parameters:
event- theOutcomeReasonUpdateEventpk- 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
-
validate
protected void validate(BOOutcomeReason outcomeReason, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-