Class BTWarehouseOperationLoadBySource
java.lang.Object
overit.geocall.bl.BusinessTask<WarehouseOperationLoadBySourceEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WarehouseOperationLoadBySourceEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WarehouseOperationLoadBySourceEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<WarehouseOperationLoadBySourceEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.operation.task.BTWarehouseOperationLoadBySource
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WarehouseOperationLoadBySourceEvent.class)
public class BTWarehouseOperationLoadBySource
extends BTInventoryManagement<WarehouseOperationLoadBySourceEvent>
Business task in order to load a list of
When the
WarehouseOperation starting from their source. When the
WarehouseOperationLoadBySourceEvent is launched
the BT notices the call and loads all the WarehouseOperation basing on the event's input. - 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(WarehouseOperationLoadBySourceEvent event, PoolKit poolKit) Writes the list of loadedWarehouseOperations in the event's journal.booleanChecks if the execution is valid.protected List<BOWarehouseOperationHeaderSource> loadOperationSource(WarehouseOperationLoadBySourceInput input, PoolKit poolKit) Loads the list ofBOWarehouseOperationHeaderSourcefrom the given input.protected List<WarehouseOperation> loadWarehouseOperations(Set<Long> operationIds, PoolKit poolKit) Loads all theWarehouseOperationstarting from their ids.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
-
BTWarehouseOperationLoadBySource
public BTWarehouseOperationLoadBySource()
-
-
Method Details
-
execute
protected void execute(WarehouseOperationLoadBySourceEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the list of loadedWarehouseOperations in the event's journal.- Specified by:
executein classValidExecutionBusinessTask<WarehouseOperationLoadBySourceEvent>- Parameters:
event- theWarehouseOperationLoadBySourceEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadWarehouseOperations
protected List<WarehouseOperation> loadWarehouseOperations(Set<Long> operationIds, PoolKit poolKit) throws DAValidateException, DAException Loads all theWarehouseOperationstarting from their ids.- Parameters:
operationIds- the operation idspoolKit- thePoolKit- Returns:
- a list of loaded
WarehouseOperation - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadOperationSource
protected List<BOWarehouseOperationHeaderSource> loadOperationSource(WarehouseOperationLoadBySourceInput input, PoolKit poolKit) throws DAValidateException, DAException Loads the list ofBOWarehouseOperationHeaderSourcefrom the given input.- Parameters:
input- theWarehouseOperationLoadBySourceInputpoolKit- thePoolKit- Returns:
- a list of loaded
BOWarehouseOperationHeaderSource - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-