Class CustomerSegmentOrderActivity

java.lang.Object
org.broadleafcommerce.core.workflow.BaseActivity<org.broadleafcommerce.core.workflow.ProcessContext<org.broadleafcommerce.core.checkout.service.workflow.CheckoutSeed>>
com.broadleafcommerce.customersegment.workflow.activity.CustomerSegmentOrderActivity
All Implemented Interfaces:
org.broadleafcommerce.core.workflow.Activity<org.broadleafcommerce.core.workflow.ProcessContext<org.broadleafcommerce.core.checkout.service.workflow.CheckoutSeed>>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.core.Ordered

@Component("blCustomerSegmentOrderActivity") public class CustomerSegmentOrderActivity extends org.broadleafcommerce.core.workflow.BaseActivity<org.broadleafcommerce.core.workflow.ProcessContext<org.broadleafcommerce.core.checkout.service.workflow.CheckoutSeed>>
This is a Checkout Activity that checks purchased based customer segments for this order and added the order's customer to the segment if qualified.

NOTE: Only use this activity in the Checkout Workflow.

Author:
Jon Fleschler (jfleschler)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
     

    Fields inherited from class org.broadleafcommerce.core.workflow.BaseActivity

    automaticallyRegisterRollbackHandler, beanName, errorHandler, order, rollbackHandler, rollbackRegion, stateConfiguration

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.broadleafcommerce.core.workflow.ProcessContext<org.broadleafcommerce.core.checkout.service.workflow.CheckoutSeed>
    execute(org.broadleafcommerce.core.workflow.ProcessContext<org.broadleafcommerce.core.checkout.service.workflow.CheckoutSeed> context)
     

    Methods inherited from class org.broadleafcommerce.core.workflow.BaseActivity

    getAutomaticallyRegisterRollbackHandler, getBeanName, getErrorHandler, getOrder, getRollbackHandler, getRollbackRegion, getStateConfiguration, setAutomaticallyRegisterRollbackHandler, setBeanName, setErrorHandler, setOrder, setRollbackHandler, setRollbackRegion, setStateConfiguration, shouldExecute

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • CustomerSegmentOrderActivity

      public CustomerSegmentOrderActivity()
  • Method Details

    • execute

      public org.broadleafcommerce.core.workflow.ProcessContext<org.broadleafcommerce.core.checkout.service.workflow.CheckoutSeed> execute(org.broadleafcommerce.core.workflow.ProcessContext<org.broadleafcommerce.core.checkout.service.workflow.CheckoutSeed> context) throws Exception
      Throws:
      Exception