Class BTCentralWarehouseInsert
java.lang.Object
overit.geocall.bl.BusinessTask<CentralWarehouseInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<CentralWarehouseInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<CentralWarehouseInsertEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<CentralWarehouseInsertEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.central.task.BTCentralWarehouseInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(CentralWarehouseInsertEvent.class)
public class BTCentralWarehouseInsert
extends BTInventoryManagement<CentralWarehouseInsertEvent>
Business task in order to insert a
When the
BOCentralWarehouse. When the
CentralWarehouseInsertEvent is launched the BT notices the
call and inserts 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(CentralWarehouseInsertEvent event, PoolKit pk) Inserts the givenBOCentralWarehouseand writes the newly generated id into the event journal.booleanChecks if the execution is valid.protected voidvalidateAndComplete(BOCentralWarehouse warehouse, PoolKit pk) 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
-
BTCentralWarehouseInsert
public BTCentralWarehouseInsert()
-
-
Method Details
-
execute
protected void execute(CentralWarehouseInsertEvent event, PoolKit pk) throws DAException, DAValidateException Inserts the givenBOCentralWarehouseand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<CentralWarehouseInsertEvent>- Parameters:
event- theCentralWarehouseInsertEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validateAndComplete
protected void validateAndComplete(BOCentralWarehouse warehouse, PoolKit pk) throws DAValidateException Validates the data before the insertion.- Parameters:
warehouse- theBOCentralWarehouseto insertpk- thePoolKit- Throws:
DAValidateException- the DA validate exception
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-