java.lang.Object
org.broadleafcommerce.core.workflow.BaseActivity<ProcessContext<Order>>
org.broadleafcommerce.core.pricing.service.workflow.TotalActivity
All Implemented Interfaces:
Activity<ProcessContext<Order>>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.core.Ordered

@Component("blTotalActivity") public class TotalActivity extends BaseActivity<ProcessContext<Order>>
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
  • Field Details

  • Constructor Details

    • TotalActivity

      public TotalActivity()
  • Method Details

    • execute

      public ProcessContext<Order> execute(ProcessContext<Order> 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)