@Component(value="blDecrementInventoryRollbackHandler") public class DecrementInventoryRollbackHandler extends Object implements RollbackHandler<CheckoutSeed>
DecrementInventoryActivity| Modifier and Type | Field and Description |
|---|---|
protected WorkflowInventoryExtensionManager |
extensionManager |
protected InventoryService |
inventoryService |
static String |
ROLLBACK_BLC_INVENTORY_DECREMENTED |
static String |
ROLLBACK_BLC_INVENTORY_INCREMENTED |
static String |
ROLLBACK_BLC_ORDER_ID |
| Constructor and Description |
|---|
DecrementInventoryRollbackHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
rollbackState(Activity<? extends ProcessContext<CheckoutSeed>> activity,
ProcessContext<CheckoutSeed> processContext,
Map<String,Object> stateConfiguration)
Rollback the state of the activity to what it was prior to execution.
|
void |
setInventoryService(InventoryService service) |
public static final String ROLLBACK_BLC_INVENTORY_DECREMENTED
public static final String ROLLBACK_BLC_INVENTORY_INCREMENTED
public static final String ROLLBACK_BLC_ORDER_ID
protected InventoryService inventoryService
protected WorkflowInventoryExtensionManager extensionManager
public void rollbackState(Activity<? extends ProcessContext<CheckoutSeed>> activity, ProcessContext<CheckoutSeed> processContext, Map<String,Object> stateConfiguration) throws RollbackFailureException
RollbackHandlerrollbackState in interface RollbackHandler<CheckoutSeed>activity - The Activity instance whose state is being revertedprocessContext - The ProcessContext for the workflowstateConfiguration - Any user-defined state configuration associated with the RollbackHandlerRollbackFailureException - if there is a failure during the execution of the rollbackpublic void setInventoryService(InventoryService service)
Copyright © 2014. All Rights Reserved.