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.core.bl.base.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:
WfmPermissions.FSM_CORE_STRUCTURE_EDIT
Error Code:
Codes.INVALID_PROPERTY_VALUE: Invalid value for property "structure"Codes.PROPERTY_REQUIRED: Missing required multilanguage values for the property "code"Codes.MISSING_REQUIRED_MULTILANGUAGE_VALUES: Property "description" is requiredCodes.MODULE_NOT_ACTIVE: Module timesheet is not active
Autocomplete: Multilanguage
Also it creates a new zone and a new warehouse.
Visibility:
- all the structures that are connected to the user
- Since:
- 9.2
- 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 voidcreateOperationsCenterSequence(Long operationCenterId, PooledConnection conn) protected voidexecute(OperationCenterInsertEvent event, PoolKit pk) Writes the inserted operation center id into the event journal.protected voidinsertOperationCenter(BOOperationCenter operationCenter, PoolKit pk) protected voidinsertZone(BOOperationCenter operationCenter, PoolKit pk) booleanDetermines whether the current state is valid for execution.protected voidMethods 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
-
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
-
insertOperationCenter
protected void insertOperationCenter(BOOperationCenter operationCenter, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
insertZone
protected void insertZone(BOOperationCenter operationCenter, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
createOperationsCenterSequence
protected void createOperationsCenterSequence(Long operationCenterId, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
validate
- Throws:
DAValidateException
-