Class BTOperationCenterInsert
java.lang.Object
overit.geocall.bl.BusinessTask<OperationCenterInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<OperationCenterInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<OperationCenterInsertEvent>
overit.geocallapp.wfm.organizationalstructures.bl.operationcenter.task.BTOperationCenterInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(OperationCenterInsertEvent.class)
public class BTOperationCenterInsert
extends ValidPermissionBusinessTask<OperationCenterInsertEvent>
Business task in order to insert a
When the
BOOperationCenter. When the
OperationCenterInsertEvent is launched the BT notices the
call and inserts the BOOperationCenter basing on the event's
input.Required fields:
- code
- description
- structure
Permission:
Error Code:
Codes.INVALID_PROPERTY_VALUE: Invalid value for property {0}Codes.MISSING_REQUIRED_MULTILANGUAGE_VALUES: Missing required multilanguage values for the property "code"Codes.PROPERTY_REQUIRED: Property {0} is required
Autocomplete: Multilanguage
Also it creates a new zone and a new warehouse.
- Since:
- 16.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 voidcheckUniqueCode(BOOperationCenter operationCenter, PoolKit poolKit) Checks if the code of the given operation center is unique.protected voidexecute(OperationCenterInsertEvent event, PoolKit pk) Writes the inserted operation center id into the event journal.protected voidinsertZone(BOOperationCenter operationCenter, PoolKit pk) booleanDetermines whether the current state is valid for execution.protected voidnotifyInsert(BOOperationCenter operationCenter, PoolKit poolKit) protected voidvalidate(BOOperationCenter operationCenter, PoolKit poolKit) 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
-
BTOperationCenterInsert
public BTOperationCenterInsert()
-
-
Method Details
-
execute
protected void execute(OperationCenterInsertEvent event, PoolKit pk) throws DAException, DAValidateException Writes the inserted operation center id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<OperationCenterInsertEvent>- Parameters:
event- theOperationCenterInsertEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
notifyInsert
protected void notifyInsert(BOOperationCenter operationCenter, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
validate
protected void validate(BOOperationCenter operationCenter, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
checkUniqueCode
protected void checkUniqueCode(BOOperationCenter operationCenter, PoolKit poolKit) throws DAValidateException, DAException Checks if the code of the given operation center is unique.- Parameters:
operationCenter- the operation centerpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
insertZone
protected void insertZone(BOOperationCenter operationCenter, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
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
-