Class BTWarehouseOperationItemStateChange
java.lang.Object
overit.geocall.bl.BusinessTask<WarehouseOperationItemStateChangeEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WarehouseOperationItemStateChangeEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WarehouseOperationItemStateChangeEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<WarehouseOperationItemStateChangeEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.operation.header.task.BTWarehouseOperationItemStateChange
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WarehouseOperationItemStateChangeEvent.class)
public class BTWarehouseOperationItemStateChange
extends BTInventoryManagement<WarehouseOperationItemStateChangeEvent>
Business task in order change the state of a
When the
BOWarehouseOperationItem. When the
WarehouseOperationItemStateChangeEvent is launched
the BT notices the call and changes the stae of the BOWarehouseOperationItem 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(WarehouseOperationItemStateChangeEvent event, PoolKit poolKit) Change the state of aBOWarehouseOperationItem.protected LonggetNewOperationState(WarehouseOperation operation) Returns the new operation item state.booleanDetermines whether the current state is valid for execution.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
-
BTWarehouseOperationItemStateChange
public BTWarehouseOperationItemStateChange()
-
-
Method Details
-
execute
protected void execute(WarehouseOperationItemStateChangeEvent event, PoolKit poolKit) throws DAException, DAValidateException Change the state of aBOWarehouseOperationItem.- Specified by:
executein classValidExecutionBusinessTask<WarehouseOperationItemStateChangeEvent>- Parameters:
event- theWarehouseOperationItemStateChangeEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
getNewOperationState
Returns the new operation item state.- Parameters:
operation- the operation item- Returns:
- the new operation item state
-
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
-