org.broadleafcommerce.inventory.service.workflow
Class InventoryRollbackHandler
java.lang.Object
org.broadleafcommerce.inventory.service.workflow.InventoryRollbackHandler
- All Implemented Interfaces:
- org.broadleafcommerce.core.workflow.state.RollbackHandler
public class InventoryRollbackHandler
- extends Object
- implements org.broadleafcommerce.core.workflow.state.RollbackHandler
Provides a standard rollback handler to ensure that in the event of something going wrong in a workflow, that
- Author:
- Kelly Tisdell
|
Method Summary |
void |
rollbackState(org.broadleafcommerce.core.workflow.Activity activity,
org.broadleafcommerce.core.workflow.ProcessContext processContext,
Map<String,Object> stateConfiguration)
|
void |
setMaxRetries(int maxRetries)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROLLBACK_BLC_INVENTORY_DECREMENTED
public static final String ROLLBACK_BLC_INVENTORY_DECREMENTED
- See Also:
- Constant Field Values
ROLLBACK_BLC_INVENTORY_INCREMENTED
public static final String ROLLBACK_BLC_INVENTORY_INCREMENTED
- See Also:
- Constant Field Values
ROLLBACK_BLC_ORDER_ID
public static final String ROLLBACK_BLC_ORDER_ID
- See Also:
- Constant Field Values
inventoryService
protected InventoryService inventoryService
maxRetries
protected int maxRetries
InventoryRollbackHandler
public InventoryRollbackHandler()
rollbackState
public void rollbackState(org.broadleafcommerce.core.workflow.Activity activity,
org.broadleafcommerce.core.workflow.ProcessContext processContext,
Map<String,Object> stateConfiguration)
throws org.broadleafcommerce.core.workflow.state.RollbackFailureException
- Specified by:
rollbackState in interface org.broadleafcommerce.core.workflow.state.RollbackHandler
- Throws:
org.broadleafcommerce.core.workflow.state.RollbackFailureException
setMaxRetries
public void setMaxRetries(int maxRetries)
Copyright © 2013. All Rights Reserved.