Class BTMaterialExpectedQuantityCalculate
java.lang.Object
overit.geocall.bl.BusinessTask<MaterialExpectedQuantityCalculateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MaterialExpectedQuantityCalculateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<MaterialExpectedQuantityCalculateEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<MaterialExpectedQuantityCalculateEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.material.expected.task.BTMaterialExpectedQuantityCalculate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(MaterialExpectedQuantityCalculateEvent.class)
public class BTMaterialExpectedQuantityCalculate
extends BTInventoryManagement<MaterialExpectedQuantityCalculateEvent>
Business task in order to calculate a warehouse material expected quantity.
When the
When the
MaterialExpectedQuantityCalculateEvent is launched the BT notices the call and compute the warehouse material expected quantity
basing on the event's input. Permission:
- Since:
- 14.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(MaterialExpectedQuantityCalculateEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.getSchedulingResources(Long centralWarehouse, PoolKit poolKit) booleanChecks if the execution is valid.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
-
BTMaterialExpectedQuantityCalculate
public BTMaterialExpectedQuantityCalculate()
-
-
Method Details
-
execute
protected void execute(MaterialExpectedQuantityCalculateEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<MaterialExpectedQuantityCalculateEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
getSchedulingResources
protected Set<Long> getSchedulingResources(Long centralWarehouse, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-