org.broadleafcommerce.inventory.service.workflow
Class DecrementInventoryActivity
java.lang.Object
org.broadleafcommerce.core.workflow.BaseActivity
org.broadleafcommerce.inventory.service.workflow.DecrementInventoryActivity
- All Implemented Interfaces:
- org.broadleafcommerce.core.workflow.Activity, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware
public class DecrementInventoryActivity
- extends org.broadleafcommerce.core.workflow.BaseActivity
Default workflow activity to decrement inventory. This only attempts to decrement inventory from
the default fulfillment location. If you have specific requirements for additional fulfillment locations,
please implement this in a way that works for you.
- Author:
- Kelly Tisdell
|
Method Summary |
org.broadleafcommerce.core.workflow.ProcessContext |
execute(org.broadleafcommerce.core.workflow.ProcessContext context)
|
void |
setMaxRetries(Integer maxRetries)
|
| Methods inherited from class org.broadleafcommerce.core.workflow.BaseActivity |
getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setRollbackHandler, setRollbackRegion, setStateConfiguration |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inventoryService
protected InventoryService inventoryService
fulfillmentLocationService
protected FulfillmentLocationService fulfillmentLocationService
maxRetries
protected Integer maxRetries
DecrementInventoryActivity
public DecrementInventoryActivity()
execute
public org.broadleafcommerce.core.workflow.ProcessContext execute(org.broadleafcommerce.core.workflow.ProcessContext context)
throws Exception
- Throws:
Exception
setMaxRetries
public void setMaxRetries(Integer maxRetries)
Copyright © 2013. All Rights Reserved.