Class DetermineOfferChangeActivity

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

@Component("blDetermineOfferChangeActivity") public class DetermineOfferChangeActivity extends BaseActivity<ProcessContext<Order>>
This class is used in conjunction with the CountTotalOffersActivity 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

    • DetermineOfferChangeActivity

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