Class BTCentralWarehouseUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<CentralWarehouseUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<CentralWarehouseUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<CentralWarehouseUpdateEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<CentralWarehouseUpdateEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.central.task.BTCentralWarehouseUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(CentralWarehouseUpdateEvent.class)
public class BTCentralWarehouseUpdate
extends BTInventoryManagement<CentralWarehouseUpdateEvent>
Business task in order to update a
When the
BOCentralWarehouse. When the
CentralWarehouseUpdateEvent is launched the BT notices the
call and updates the BOCentralWarehouse basing on the event's input. Required fields:
- Code
- Description
Permission:
Error Code:
Codes.Inventory.WAREHOUSE_CODE_NOT_DEFINED: Code not defined.Codes.Inventory.WAREHOUSE_DESCRIPTION_NOT_DEFINED: Description not defined.
- 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(CentralWarehouseUpdateEvent event, PoolKit pk) Updates theBOCentralWarehousewith all its needed components.booleanChecks if the execution is valid.protected voidvalidateAndComplete(BOCentralWarehouse warehouse, PoolKit pk) Validates the data before the update.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
-
BTCentralWarehouseUpdate
public BTCentralWarehouseUpdate()
-
-
Method Details
-
execute
protected void execute(CentralWarehouseUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Updates theBOCentralWarehousewith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<CentralWarehouseUpdateEvent>- Parameters:
event- theCentralWarehouseUpdateEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validateAndComplete
protected void validateAndComplete(BOCentralWarehouse warehouse, PoolKit pk) throws DAValidateException, DAException Validates the data before the update.- Parameters:
warehouse- theBOCentralWarehouseto updatepk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-