Class BTWarehouseOperationCenterInsert
java.lang.Object
overit.geocall.bl.BusinessTask<WarehouseOperationCenterInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WarehouseOperationCenterInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WarehouseOperationCenterInsertEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<WarehouseOperationCenterInsertEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.central.operationcenter.task.BTWarehouseOperationCenterInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WarehouseOperationCenterInsertEvent.class)
public class BTWarehouseOperationCenterInsert
extends BTInventoryManagement<WarehouseOperationCenterInsertEvent>
Business task in order to insert a
When the
BOWarehouseOperationCenter. When the
WarehouseOperationCenterInsertEvent is launched
the BT notices the call and inserts the BOWarehouseOperationCenter basing on the event's input. Required fields:
- Central warehouse id
- Operation center id
Permission:
Error Code:
Codes.Inventory.RELATION_ALREADY_DEFINED: Relation already defined.Codes.Inventory.CENTRAL_WAREHOUSE_NOT_DEFINED: Central warehouse not defined.Codes.Inventory.OPERATION_CENTER_NOT_DEFINED: Operation center not defined.Codes.GC_NOT_FOUND: The resource has not been found
Visibility:
- all the operation centers that are connected to the user and all the warehouses that are connected to the operation centers of the user
- Since:
- 13.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(WarehouseOperationCenterInsertEvent event, PoolKit poolKit) Inserts the givenBOWarehouseOperationCenterand writes the newly generated id into the event journal.booleanChecks if the execution is valid.protected voidvalidate(BOWarehouseOperationCenter input, PoolKit poolKit) Validate.Methods inherited from class overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement
checkValidExecutionMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
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
-
BTWarehouseOperationCenterInsert
public BTWarehouseOperationCenterInsert()
-
-
Method Details
-
execute
protected void execute(WarehouseOperationCenterInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the givenBOWarehouseOperationCenterand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<WarehouseOperationCenterInsertEvent>- Parameters:
event- theWarehouseOperationCenterInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BOWarehouseOperationCenter input, PoolKit poolKit) throws DAValidateException, DAException Validate.- Parameters:
input- the givenBOWarehouseOperationCenterpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-