Class BTWarehouseTransactionInsert
java.lang.Object
overit.geocall.bl.BusinessTask<WarehouseTransactionInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WarehouseTransactionInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WarehouseTransactionInsertEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<WarehouseTransactionInsertEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.transaction.task.BTWarehouseTransactionInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WarehouseTransactionInsertEvent.class)
public class BTWarehouseTransactionInsert
extends BTInventoryManagement<WarehouseTransactionInsertEvent>
Business task in order to insert a
When the
BOWarehouseTransaction. When the
WarehouseTransactionInsertEvent is launched
the BT notices the call and inserts the BOWarehouseTransaction basing on the event's input. Required fields:
- Warehouse Id
- Type Id
- Material Id
- Stock Type Id
- Quantity
- Measure Unit Id
Permission:
Error Code:
Codes.Inventory.WAREHOUSE_NOT_DEFINED: Warehouse not defined.Codes.Inventory.TYPE_NOT_DEFINED: Type not defined.Codes.Inventory.MATERIAL_NOT_DEFINED: Material not defined.Codes.Inventory.MATERIAL_NOT_IN_STOCK: Material not in stock.Codes.Inventory.QUANTITY_NOT_DEFINED: Quantity not defined.Codes.Inventory.MEASURE_UNIT_DEFINED: Measure unit 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(WarehouseTransactionInsertEvent event, PoolKit poolKit) Inserts the givenBOWarehouseTransactionand writes the newly generated id into the event journal.booleanChecks if the execution is valid.protected voidvalidate(BOWarehouseTransaction bo, PoolKit poolKit) Validates the data before the insertion.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
-
BTWarehouseTransactionInsert
public BTWarehouseTransactionInsert()
-
-
Method Details
-
execute
protected void execute(WarehouseTransactionInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the givenBOWarehouseTransactionand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<WarehouseTransactionInsertEvent>- Parameters:
event- theWarehouseTransactionInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BOWarehouseTransaction bo, PoolKit poolKit) throws DAValidateException, DAException Validates the data before the insertion.- Parameters:
bo- theBOWarehouseTransactionto insertpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-