Interface ActionSupplementStrategy
-
- All Known Implementing Classes:
CartTotalThresholdPotentialPromotionMessageActionSupplementStrategy,NoOpPotentialPromotionMessageActionSupplementStrategy,QualifyingCategoryPotentialPromotionMessageActionSupplementStrategy,QualifyingProductPotentialPromotionMessageActionSupplementStrategy
public interface ActionSupplementStrategyStrategy for supplementing ofAbstractRuleActionRAO.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringUUID_SUFFIX
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanisActionProperToHandle(AbstractRuleActionRAO actionRao, RuleActionContext context)Checks if the action result is proper to be processed by the strategydefault voidpostProcessAction(AbstractRuleActionRAO actionRao, RuleActionContext context)Post process ofAbstractRuleActionRAO.booleanshouldPerformAction(AbstractRuleActionRAO actionRao, RuleActionContext context)Gives additional input into whether an action should be performed or not
-
-
-
Field Detail
-
UUID_SUFFIX
static final java.lang.String UUID_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
isActionProperToHandle
boolean isActionProperToHandle(AbstractRuleActionRAO actionRao, RuleActionContext context)
Checks if the action result is proper to be processed by the strategy- Parameters:
actionRao- - action resultcontext- - instance of RuleActionContext
-
postProcessAction
default void postProcessAction(AbstractRuleActionRAO actionRao, RuleActionContext context)
Post process ofAbstractRuleActionRAO.- Parameters:
actionRao- - action resultcontext- - instance of RuleActionContext
-
shouldPerformAction
boolean shouldPerformAction(AbstractRuleActionRAO actionRao, RuleActionContext context)
Gives additional input into whether an action should be performed or not- Parameters:
actionRao- - action resultcontext- - instance of RuleActionContext- Returns:
trueif action should be performed,false- otherwise
-
-