org.broadleafcommerce.core.pricing.service.workflow
Class TotalActivity

java.lang.Object
  extended by org.broadleafcommerce.core.workflow.BaseActivity
      extended by org.broadleafcommerce.core.pricing.service.workflow.TotalActivity
All Implemented Interfaces:
Activity, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

public class TotalActivity
extends BaseActivity

The TotalActivity is responsible for calculating and setting totals for a given order. It must set the sum of the the taxes in the appropriate places as well as fulfillment group subtotals / totals and order subtotals / totals.

Author:
aazzolini

Constructor Summary
TotalActivity()
           
 
Method Summary
 ProcessContext execute(ProcessContext context)
          Called by the encompassing processor to activate the execution of the Activity
protected  void setTaxSums(Order order)
           
 
Methods inherited from class org.broadleafcommerce.core.workflow.BaseActivity
getBeanName, getErrorHandler, setBeanName, setErrorHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TotalActivity

public TotalActivity()
Method Detail

execute

public ProcessContext execute(ProcessContext context)
                       throws Exception
Description copied from interface: Activity
Called by the encompassing processor to activate the execution of the Activity

Parameters:
context - - process context for this workflow
Returns:
resulting process context
Throws:
Exception

setTaxSums

protected void setTaxSums(Order order)


Copyright © 2012. All Rights Reserved.