Class BTStockChangeUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<StockChangeUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<StockChangeUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<StockChangeUpdateEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<StockChangeUpdateEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.stock.change.task.BTStockChangeUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(StockChangeUpdateEvent.class)
public class BTStockChangeUpdate
extends BTInventoryManagement<StockChangeUpdateEvent>
Business task in order to update a
BOStockChange.
When the StockChangeUpdateEvent is launched
the BT notices the call and updates the BOStockChange 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(StockChangeUpdateEvent event, PoolKit poolKit) Updates theBOStockChangewith all its needed components.booleanChecks if the execution is valid.protected voidupdate(BOStockChange boStockChange, PoolKit poolKit) Performs the update of the givenBOStockChange.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
-
BTStockChangeUpdate
public BTStockChangeUpdate()
-
-
Method Details
-
execute
protected void execute(StockChangeUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates theBOStockChangewith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<StockChangeUpdateEvent>- Parameters:
event- theStockChangeUpdateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
update
protected void update(BOStockChange boStockChange, PoolKit poolKit) throws DAException, DAValidateException Performs the update of the givenBOStockChange.- Parameters:
boStockChange- theBOStockChangeto 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
-