@Component(value="blDecrementInventoryRollbackHandler") public class DecrementInventoryRollbackHandler extends Object implements RollbackHandler<CheckoutSeed>
DecrementInventoryActivity| Modifier and Type | Field and Description |
|---|---|
static String |
EXTENDED_ROLLBACK_STATE |
protected ContextualInventoryService |
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.
|
protected boolean |
shouldExecute(Activity<? extends ProcessContext<CheckoutSeed>> activity,
ProcessContext<CheckoutSeed> processContext,
Map<String,Object> stateConfiguration)
Returns true if this rollback handler should execute
|
public static final String ROLLBACK_BLC_INVENTORY_DECREMENTED
public static final String ROLLBACK_BLC_INVENTORY_INCREMENTED
public static final String ROLLBACK_BLC_ORDER_ID
public static final String EXTENDED_ROLLBACK_STATE
protected ContextualInventoryService inventoryService
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 rollbackprotected boolean shouldExecute(Activity<? extends ProcessContext<CheckoutSeed>> activity, ProcessContext<CheckoutSeed> processContext, Map<String,Object> stateConfiguration)
Copyright © 2015. All Rights Reserved.