public interface Condition extends XMLizable
Conditionis 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|
IBM copyright notice field.
|Modifier and Type||Method and Description|
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.