Class CountTotalOffersActivity

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

@Component("blCountTotalOffersActivity") public class CountTotalOffersActivity extends BaseActivity<ProcessContext<Order>>
This class is used in conjunction with the DetermineOfferChangeActivity to determine if the number of offers changed on the order during the pricing workflow. This is important in determining if an offer expired between the last time the order was priced and when the order was about to be sent through checkout.
Author:
Jay Aisenbrey (cja769)
  • Field Details

  • Constructor Details

    • CountTotalOffersActivity

      public CountTotalOffersActivity()
  • 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
    • convertOffersToIds

      protected Set<Long> convertOffersToIds(Set<Offer> offers)