Configure the promotion engine for a custom sequence builder
To configure the promotion engine to use a customer sequence builder:
- Edit the promotion engine configuration XML file in an editor. You can find this file in the following location: WC_eardir/xml/PromotionEngineConfiguration/WCSPromotionEngineConfig.xml
- Update the following code segment:
<PromotionExecutionSequenceBuilder impl=" com.ibm.commerce.marketing.promotion.runtime.DefaultSequenceBuilder"/>- The segment in bold should be updated to reflect either the custom sequence builder, or one of the following sequence builders:
- StorePathSupportedSequenceBuilder This is the default sequence builder. It supports all of the WebSphere Commerce features and business models. It evaluates promotions in the following order:
- Coupon promotions.
- Promotion codes (promotions for an asset store are evaluated before those from the related stores).
- Group order of the promotion group to which the promotions belong.
- Assigned priority.
- Store sequence in the STOREREL table.
To select this sequence builder, set the PromotionExecutionSequenceBuilder's impl parameter to:
com/ibm/commerce/marketing/promotion/runtime/StorePathSupportedSequenceBuilder.java- StorePathSupportedGroupFirstSequenceBuilder This sequence builder is similar to the first, except that it evaluates promotions according to the group to which they belong first. It evaluates promotions in the following order:
- Group order of the promotion group to which the promotions belong.
- Coupon promotions.
- Promotion codes (promotions for an asset store are evaluated before those from the related stores).
- Assigned priority.
- Store sequence in the STOREREL table.
To select this sequence builder, set the PromotionExecutionSequenceBuilder's impl parameter to
com/ibm/commerce/marketing/promotion/runtime/StorePathSupportedSequenceBuilder.java- DefaultSequenceBuilder A former default sequence builder that does not support B2B business models. It evaluates promotions in the following order:
- Coupon promotions.
- Promotion codes
- Group order of the promotion group to which the promotions belong.
- Assigned priority
- To select this sequence builder, set the PromotionExecutionSequenceBuilder's impl parameter to
com/ibm/commerce/marketing/promotion/runtime/DefaultSequenceBuilder.java- StaticSequenceBuilder It evaluates promotions in the following order:
- Group order of the promotion group to which the promotions belong.
- Assigned priority
To select this sequence builder, set the PromotionExecutionSequenceBuilder's impl parameter to
com/ibm/commerce/marketing/promotion/runtime/StaticSequenceBuilder.javaYou may also see the following sequence builder, which is not intended to be used directly:
- PromotionExecutionSequenceBuilder.java
- A dummy interface to facilitate customization. Any custom sequence builders must call this interface.
- Publish the updated configuration file to the production server.
Related tasks
Configure the Promotion Engine
Related Reference
Example: Promotion engine configuration XML file