Class BTMobileWarehouseUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<MobileWarehouseUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MobileWarehouseUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<MobileWarehouseUpdateEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<MobileWarehouseUpdateEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.mobile.task.BTMobileWarehouseUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(MobileWarehouseUpdateEvent.class)
public class BTMobileWarehouseUpdate
extends BTInventoryManagement<MobileWarehouseUpdateEvent>
Business task in order to update a
When the
BOMobileWarehouse. When the
MobileWarehouseUpdateEvent is launched the BT notices the
call and updates the BOMobileWarehouse 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 voidcheckSchedulingResourceCentralWarehouseOC(BOMobileWarehouse warehouse, PoolKit pk) Checks if the Central Warehouse Operation Centers contain Scheduling Resource Operative Center.protected voidexecute(MobileWarehouseUpdateEvent event, PoolKit pk) Updates theBOMobileWarehousewith all its needed components.booleanChecks if is the execution is valid.protected voidvalidateAndComplete(BOMobileWarehouse 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
-
BTMobileWarehouseUpdate
public BTMobileWarehouseUpdate()
-
-
Method Details
-
execute
protected void execute(MobileWarehouseUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Updates theBOMobileWarehousewith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<MobileWarehouseUpdateEvent>- Parameters:
event- theMobileWarehouseUpdateEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validateAndComplete
protected void validateAndComplete(BOMobileWarehouse warehouse, PoolKit pk) throws DAValidateException, DAException Validates the data before the update.- Parameters:
warehouse- the currentBOMobileWarehousepk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
checkSchedulingResourceCentralWarehouseOC
protected void checkSchedulingResourceCentralWarehouseOC(BOMobileWarehouse warehouse, PoolKit pk) throws DAValidateException, DAException Checks if the Central Warehouse Operation Centers contain Scheduling Resource Operative Center.- Parameters:
warehouse- the currentBOMobileWarehousepk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
isValidExecution
public boolean isValidExecution()Checks if is the execution is valid.- Returns:
- true, if successful
-