Class BTStockQuantityCheck
java.lang.Object
overit.geocall.bl.BusinessTask<StockQuantityCheckEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<StockQuantityCheckEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<StockQuantityCheckEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<StockQuantityCheckEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.stock.task.BTStockQuantityCheck
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(StockQuantityCheckEvent.class)
public class BTStockQuantityCheck
extends BTInventoryManagement<StockQuantityCheckEvent>
Business task in order to check the stock quantity.
When the
When the
StockQuantityCheckEvent is launched
the BT notices the call and checks the BOStock quantity basing on the event's input. Required fields:
- Warehouse id
- Material id
- Stock type id
- Quantity
Permission:
Error Code:
Codes.Inventory.NEGATIVE_STOCK_QUANTITY: The quantity of material {0} is not available in stock.
- Since:
- 14.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(StockQuantityCheckEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.booleanChecks if the execution is valid.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
-
BTStockQuantityCheck
public BTStockQuantityCheck()
-
-
Method Details
-
execute
protected void execute(StockQuantityCheckEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<StockQuantityCheckEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-