Class InventoryUpdateAction
java.lang.Object
de.hybris.platform.processengine.action.AbstractAction<T>
de.hybris.platform.processengine.action.AbstractProceduralAction<ReturnProcessModel>
de.hybris.platform.yacceleratorordermanagement.actions.returns.InventoryUpdateAction
- All Implemented Interfaces:
Action<ReturnProcessModel>
Update inventory and set the
A custom update inventory behavior must be implemented. This determines the steps to be executed after a successful return.
ReturnRequestModel status to COMPLETED.A custom update inventory behavior must be implemented. This determines the steps to be executed after a successful return.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.processengine.action.AbstractProceduralAction
AbstractProceduralAction.Transition -
Field Summary
Fields inherited from class de.hybris.platform.processengine.action.AbstractAction
modelService, processParameterHelperFields inherited from interface de.hybris.platform.processengine.spring.Action
ERROR_RETURN_CODE, RETRY_RETURN_CODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteAction(ReturnProcessModel process) Executes thisAction's business logic working on the givenBusinessProcessModel.protected DateCalculates the current date - # of delay days before restock according to a property.protected RestockConfigServiceprotected RestockWarehouseSelectionStrategyprotected WarehouseModelgetReturnWarehouse(ReturnRequestModel returnRequest) Finds theWarehouseModel, which can accept the returned good(s)protected TimeServiceprotected WarehouseStockServicevoidsetRestockConfigService(RestockConfigService restockConfigService) voidsetRestockWarehouseSelectionStrategy(RestockWarehouseSelectionStrategy restockWarehouseSelectionStrategy) voidsetTimeService(TimeService timeService) voidsetWarehouseStockService(WarehouseStockService warehouseStockService) Methods inherited from class de.hybris.platform.processengine.action.AbstractProceduralAction
execute, getTransitionsMethods inherited from class de.hybris.platform.processengine.action.AbstractAction
createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelperMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.processengine.spring.Action
getCurrentActionDefinitionContext
-
Constructor Details
-
InventoryUpdateAction
public InventoryUpdateAction()
-
-
Method Details
-
executeAction
Description copied from class:AbstractProceduralActionExecutes thisAction's business logic working on the givenBusinessProcessModel.- Specified by:
executeActionin classAbstractProceduralAction<ReturnProcessModel>- Parameters:
process- The process context to work on.- Throws:
RetryLaterExceptionException
-
getReturnWarehouse
Finds theWarehouseModel, which can accept the returned good(s)- Parameters:
returnRequest- theReturnRequestModelfor which goods need to be put back in stock- Returns:
- the
WarehouseModelwhich can accept the returned good(s) from the givenReturnRequestModel.
-
getCurrentDateWithDelayDaysBeforeRestock
Calculates the current date - # of delay days before restock according to a property.- Throws:
RestockException
-
getRestockConfigService
-
setRestockConfigService
-
getRestockWarehouseSelectionStrategy
-
setRestockWarehouseSelectionStrategy
public void setRestockWarehouseSelectionStrategy(RestockWarehouseSelectionStrategy restockWarehouseSelectionStrategy) -
getTimeService
-
setTimeService
-
getWarehouseStockService
-
setWarehouseStockService
-