org.broadleafcommerce.inventory.service.workflow
Class DecrementInventoryActivity

java.lang.Object
  extended by org.broadleafcommerce.core.workflow.BaseActivity
      extended by 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

Field Summary
protected  FulfillmentLocationService fulfillmentLocationService
           
protected  InventoryService inventoryService
           
protected  Integer maxRetries
           
 
Constructor Summary
DecrementInventoryActivity()
           
 
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
 

Field Detail

inventoryService

protected InventoryService inventoryService

fulfillmentLocationService

protected FulfillmentLocationService fulfillmentLocationService

maxRetries

protected Integer maxRetries
Constructor Detail

DecrementInventoryActivity

public DecrementInventoryActivity()
Method Detail

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.