public interface Condition extends XMLizable
Condition
is used to define a requirement of a
promotion that must be satisfied before the corresponding rewards can be
calculated and applied to an order.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(PromotionContext context)
The evaluate method is used to determine if the condition has been
satisfied successfully.
|
static final java.lang.String COPYRIGHT
boolean evaluate(PromotionContext context) throws PromotionConditionEvaluationException
context
- The PromotionContext.PromotionConditionEvaluationException
- This exception is thrown if the evaluation encounters
unexpected problems.