org.broadleafcommerce.inventory.service.workflow
Class InventoryRollbackHandler

java.lang.Object
  extended by 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

Field Summary
protected  InventoryService inventoryService
           
protected  int maxRetries
           
static String ROLLBACK_BLC_INVENTORY_DECREMENTED
           
static String ROLLBACK_BLC_INVENTORY_INCREMENTED
           
static String ROLLBACK_BLC_ORDER_ID
           
 
Constructor Summary
InventoryRollbackHandler()
           
 
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
 

Field Detail

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
Constructor Detail

InventoryRollbackHandler

public InventoryRollbackHandler()
Method Detail

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.