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