Class BTWarehouseMaterialAccountingSave
java.lang.Object
overit.geocall.bl.BusinessTask<MaterialAccountingSaveEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MaterialAccountingSaveEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<MaterialAccountingSaveEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.intervention.material.task.BTWarehouseMaterialAccountingSave
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(value=MaterialAccountingSaveEvent.class,
priority=10)
public class BTWarehouseMaterialAccountingSave
extends ValidPermissionBusinessTask<MaterialAccountingSaveEvent>
Business task in order to save materials accountings for inventory management module.
Permission:
- Since:
- 14.0
- See Also:
- GCApi:
- task
-
Field Summary
FieldsFields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanProcessAgendaMaterial(BOWarehouseAgendaMaterial agendaMaterial) protected Collection<Long> createOperationForSerializedMaterials(BOWarehouseAgendaMaterial warehouseAgendaMaterial, List<BOSerializedMaterial> serializedMaterials, PoolKit poolKit) protected Collection<Long> createWarehouseOperation(BOWarehouseAgendaMaterial warehouseAgendaMaterial, Double previuosQuantity, PoolKit poolKit) protected voidexecute(MaterialAccountingSaveEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.protected voidhandleOperations(BOWarehouseAgendaMaterial agendaMaterial, Collection<Long> operations, PoolKit poolKit) protected Collection<Long> insertWarehouseOperation(PoolKit poolKit, Map.Entry<BOWarehouseAgendaMaterial, List<BOSerializedMaterial>> entry, BOWarehouseAgendaMaterial agendaMaterial, BOMaterial boMaterial) booleanDetermines whether the current state is valid for execution.protected Collection<Long> updateWarehouseOperation(PoolKit poolKit, Map.Entry<BOWarehouseAgendaMaterial, List<BOSerializedMaterial>> entry, BOWarehouseAgendaMaterial agendaMaterial, BOMaterial boMaterial) Methods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, 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
-
Field Details
-
input
-
-
Constructor Details
-
BTWarehouseMaterialAccountingSave
public BTWarehouseMaterialAccountingSave()
-
-
Method Details
-
execute
protected void execute(MaterialAccountingSaveEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<MaterialAccountingSaveEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
insertWarehouseOperation
protected Collection<Long> insertWarehouseOperation(PoolKit poolKit, Map.Entry<BOWarehouseAgendaMaterial, List<BOSerializedMaterial>> entry, BOWarehouseAgendaMaterial agendaMaterial, BOMaterial boMaterial) throws DAValidateException, DAException- Throws:
DAValidateExceptionDAException
-
updateWarehouseOperation
protected Collection<Long> updateWarehouseOperation(PoolKit poolKit, Map.Entry<BOWarehouseAgendaMaterial, List<BOSerializedMaterial>> entry, BOWarehouseAgendaMaterial agendaMaterial, BOMaterial boMaterial) throws DAValidateException, DAException- Throws:
DAValidateExceptionDAException
-
canProcessAgendaMaterial
-
createWarehouseOperation
protected Collection<Long> createWarehouseOperation(BOWarehouseAgendaMaterial warehouseAgendaMaterial, Double previuosQuantity, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
createOperationForSerializedMaterials
protected Collection<Long> createOperationForSerializedMaterials(BOWarehouseAgendaMaterial warehouseAgendaMaterial, List<BOSerializedMaterial> serializedMaterials, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
handleOperations
protected void handleOperations(BOWarehouseAgendaMaterial agendaMaterial, Collection<Long> operations, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise
-