Class BTWarehouseTransactionCheckEvent
java.lang.Object
overit.geocall.bl.BusinessTask<WarehouseTransactionCheckEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WarehouseTransactionCheckEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WarehouseTransactionCheckEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<WarehouseTransactionCheckEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.transaction.task.BTWarehouseTransactionCheckEvent
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WarehouseTransactionCheckEvent.class)
public class BTWarehouseTransactionCheckEvent
extends BTInventoryManagement<WarehouseTransactionCheckEvent>
Business task in order to check the correctness of a
When the
BOWarehouseTransaction. When the
WarehouseTransactionCheckEvent is launched the BT notices the call and evaluates the BOWarehouseTransaction basing on the
event's input. Permission:
Error Code:
Codes.Inventory.LOAD_OPERATION_NOT_VALID: Load operation not allowed.Codes.Inventory.MATERIAL_IN_WAREHOUSE_NOT_FOUND: The material {0} is not admitted in the warehouse.Codes.Inventory.SERIALIZED_MATERIAL_NOT_ASSOCIATED: Serialized material {0} is not associated to the stock.Codes.Inventory.SERIALIZED_MATERIAL_ALREADY_ASSOCIATED: Serial number {0} of material {1} is associated to another stock.Codes.Inventory.OPERATION_NOT_ALLOWED: Operation not allowed. Last movement was an unload operation.Codes.Inventory.MISSING_LOAD_OPERATION: Operation not allowed. Missing load operation.
- 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(WarehouseTransactionCheckEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.booleanChecks if the execution is valid.protected voidmanageWarehouseMaterials(List<BOWarehouseMaterial> warehouseMaterials, BOMaterial material, Long warehouse, PoolKit poolKit) 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
-
BTWarehouseTransactionCheckEvent
public BTWarehouseTransactionCheckEvent()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-
execute
protected void execute(WarehouseTransactionCheckEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<WarehouseTransactionCheckEvent>- Parameters:
event- theWarehouseTransactionCheckEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
manageWarehouseMaterials
protected void manageWarehouseMaterials(List<BOWarehouseMaterial> warehouseMaterials, BOMaterial material, Long warehouse, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-