Class BTStockUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<StockUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<StockUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<StockUpdateEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<StockUpdateEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.stock.task.BTStockUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(StockUpdateEvent.class)
public class BTStockUpdate
extends BTInventoryManagement<StockUpdateEvent>
Business task in order to update a
When the
BOStock. When the
StockUpdateEvent is launched
the BT notices the call and updates the BOStock basing on the event's input. - Since:
- 13.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(StockUpdateEvent event, PoolKit poolKit) Updates theBOStockwith all its needed components.booleanChecks if the execution is valid.protected voidPerforms the update of the givenBOStock.protected voidValidates the data before the update.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
-
BTStockUpdate
public BTStockUpdate()
-
-
Method Details
-
execute
protected void execute(StockUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates theBOStockwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<StockUpdateEvent>- Parameters:
event- theStockUpdateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
Validates the data before the update. -
update
Performs the update of the givenBOStock.- Parameters:
boStock- theBOStockto updatepoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-