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>
public class InventoryUpdateAction extends AbstractProceduralAction<ReturnProcessModel>
Update inventory and set theReturnRequestModel
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, processParameterHelper
-
Fields inherited from interface de.hybris.platform.processengine.spring.Action
ERROR_RETURN_CODE, RETRY_RETURN_CODE
-
-
Constructor Summary
Constructors Constructor Description InventoryUpdateAction()
-
Method Summary
-
Methods inherited from class de.hybris.platform.processengine.action.AbstractProceduralAction
execute, getTransitions
-
Methods inherited from class de.hybris.platform.processengine.action.AbstractAction
createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelper
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.processengine.spring.Action
getCurrentActionDefinitionContext
-
-
-
-
Method Detail
-
executeAction
public void executeAction(ReturnProcessModel process) throws RetryLaterException, java.lang.Exception
Description copied from class:AbstractProceduralAction
Executes thisAction
's business logic working on the givenBusinessProcessModel
.- Specified by:
executeAction
in classAbstractProceduralAction<ReturnProcessModel>
- Parameters:
process
- The process context to work on.- Throws:
RetryLaterException
java.lang.Exception
-
getReturnWarehouse
protected WarehouseModel getReturnWarehouse(ReturnRequestModel returnRequest)
Finds theWarehouseModel
, which can accept the returned good(s)- Parameters:
returnRequest
- theReturnRequestModel
for which goods need to be put back in stock- Returns:
- the
WarehouseModel
which can accept the returned good(s) from the givenReturnRequestModel
.
-
getCurrentDateWithDelayDaysBeforeRestock
protected java.util.Date getCurrentDateWithDelayDaysBeforeRestock() throws RestockException
Calculates the current date - # of delay days before restock according to a property.- Throws:
RestockException
-
getRestockConfigService
protected RestockConfigService getRestockConfigService()
-
setRestockConfigService
public void setRestockConfigService(RestockConfigService restockConfigService)
-
getRestockWarehouseSelectionStrategy
protected RestockWarehouseSelectionStrategy getRestockWarehouseSelectionStrategy()
-
setRestockWarehouseSelectionStrategy
public void setRestockWarehouseSelectionStrategy(RestockWarehouseSelectionStrategy restockWarehouseSelectionStrategy)
-
getTimeService
protected TimeService getTimeService()
-
setTimeService
public void setTimeService(TimeService timeService)
-
getWarehouseStockService
protected WarehouseStockService getWarehouseStockService()
-
setWarehouseStockService
public void setWarehouseStockService(WarehouseStockService warehouseStockService)
-
-