Class BTWarehouseMaterialStockImport
java.lang.Object
overit.geocall.bl.BusinessTask<WarehouseMaterialStockImportEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WarehouseMaterialStockImportEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WarehouseMaterialStockImportEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<WarehouseMaterialStockImportEvent>
overit.geocallapp.wfm.inventory.bl.importexport.material.task.BTWarehouseMaterialStockImport
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WarehouseMaterialStockImportEvent.class)
public class BTWarehouseMaterialStockImport
extends BTInventoryManagement<WarehouseMaterialStockImportEvent>
Business task for manage the records of a import warehouse materials file.
This task groups the material by warehouse and stock type and launches the
This task groups the material by warehouse and stock type and launches the
WarehouseOperationCreationFromFileEvent.- 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 voidevaluateErrors(List<WarehouseMaterialStockImportRow> groupedRows, WarehouseOperation warehouseOperation, WarehouseOperationItem item) protected voidexecute(WarehouseMaterialStockImportEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.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
-
BTWarehouseMaterialStockImport
public BTWarehouseMaterialStockImport()
-
-
Method Details
-
execute
protected void execute(WarehouseMaterialStockImportEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<WarehouseMaterialStockImportEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
evaluateErrors
protected void evaluateErrors(List<WarehouseMaterialStockImportRow> groupedRows, WarehouseOperation warehouseOperation, WarehouseOperationItem item) -
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-