Class BTWarehouseMaterialInsert
java.lang.Object
overit.geocall.bl.BusinessTask<WarehouseMaterialInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WarehouseMaterialInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WarehouseMaterialInsertEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<WarehouseMaterialInsertEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.material.task.BTWarehouseMaterialInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WarehouseMaterialInsertEvent.class)
public class BTWarehouseMaterialInsert
extends BTInventoryManagement<WarehouseMaterialInsertEvent>
Business task in order to insert a
When the
BOWarehouseMaterial. When the
WarehouseMaterialInsertEvent is launched
the BT notices the call and inserts the BOWarehouseMaterial basing on the event's input. Required fields:
- Material id
- Warehouse id
- Measure unit id
Permission:
- 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(WarehouseMaterialInsertEvent event, PoolKit poolKit) Inserts the givenBOWarehouseMaterialand writes the newly generated id into the event journal.booleanChecks if the execution is valid.protected voidvalidate(BOWarehouseMaterial boWarehouseMaterial, PoolKit poolKit) Validate the event inputMethods 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
-
BTWarehouseMaterialInsert
public BTWarehouseMaterialInsert()
-
-
Method Details
-
execute
protected void execute(WarehouseMaterialInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the givenBOWarehouseMaterialand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<WarehouseMaterialInsertEvent>- Parameters:
event- theWarehouseMaterialInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BOWarehouseMaterial boWarehouseMaterial, PoolKit poolKit) throws DAValidateException, DAException Validate the event input- Parameters:
boWarehouseMaterial- theBOWarehouseMaterialto validatepoolKit- the pool kit- Throws:
DAValidateExceptionDAException
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-