Configuring the promotion engine for a custom sequence builder
You can configure the promotion engine to use a customer sequence builder.
Procedure
- Edit the promotion engine configuration XML file in an editor. You can find this file in the following location: workspace_dir/WC/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
- 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.
com.ibm.commerce.marketing.promotion.runtime.StorePathSupportedGroupFirstSequenceBuilder
- 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
com.ibm.commerce.marketing.promotion.runtime.DefaultSequenceBuilder
- StaticSequenceBuilder
- It evaluates promotions in the following order:
- Group order of the promotion group to which the promotions belong.
- Assigned priority
com.ibm.commerce.marketing.promotion.runtime.StaticSequenceBuilder
- 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.