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
FieldsFields inherited from class org.broadleafcommerce.core.workflow.BaseActivity
automaticallyRegisterRollbackHandler, beanName, errorHandler, order, rollbackHandler, rollbackRegion, stateConfigurationFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.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
-
Field Details
-
ORDER
public static final int ORDER- See Also:
-
service
-
-
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
-