Class BTOperationCenterAddressInsert
java.lang.Object
overit.geocall.bl.BusinessTask<OperationCenterAddressInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<OperationCenterAddressInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<OperationCenterAddressInsertEvent>
overit.geocallapp.wfm.core.bl.base.operationcenter.address.task.BTOperationCenterAddressInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(OperationCenterAddressInsertEvent.class)
public class BTOperationCenterAddressInsert
extends ValidPermissionBusinessTask<OperationCenterAddressInsertEvent>
Business task in order to insert a
When the
BOOperationCenterAddress. When the
OperationCenterAddressInsertEvent is launched the BT notices the call and inserts the
BOOperationCenterAddress basing on the event's input. Required fields:
- address
- operationCenter
Permission:
WfmPermissions.FSM_CORE_STRUCTURE_EDIT
Error Code:
Codes.INVALID_PROPERTY_VALUE: Invalid value for property {0}
- Since:
- 12.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 voidcompleteAndValidate(BOOperationCenterAddress boOperationCenterAddress, PoolKit pk) protected voidexecute(OperationCenterAddressInsertEvent event, PoolKit pk) Writes the inserted operation center address id into 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
-
BTOperationCenterAddressInsert
public BTOperationCenterAddressInsert()
-
-
Method Details
-
execute
protected void execute(OperationCenterAddressInsertEvent event, PoolKit pk) throws DAException, DAValidateException Writes the inserted operation center address id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<OperationCenterAddressInsertEvent>- Parameters:
event- theOperationCenterAddressInsertEventpk- 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
-
completeAndValidate
protected void completeAndValidate(BOOperationCenterAddress boOperationCenterAddress, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-