Developers want to pass parameters from outside the promotion evaluation process, to use them in their new condition evaluators and action executors without the need to override ruleset and promotion calculation rule (Recipe: How Can I Add a New Action Type?).
This functionality uses a
CalculationContext object to store the parameters. The
CalculationContext object gets passed through the promotion evaluation process. In a
CalculationRule object a
PromotionEvaluationObjects object is created and receives the custom parameters from the Context object. The
PromotionEvaluationObjects is passed to objects of classes which implement the interface
PromotionActionExecutor where the custom parameters can be used.
The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.