Interface ActionSupplementStrategy
- All Known Implementing Classes:
CartTotalThresholdPotentialPromotionMessageActionSupplementStrategy,NoOpPotentialPromotionMessageActionSupplementStrategy,QualifyingCategoryPotentialPromotionMessageActionSupplementStrategy,QualifyingProductPotentialPromotionMessageActionSupplementStrategy
public interface ActionSupplementStrategy
Strategy for supplementing of
AbstractRuleActionRAO.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanisActionProperToHandle(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 Details
-
UUID_SUFFIX
- See Also:
-
-
Method Details
-
isActionProperToHandle
Checks if the action result is proper to be processed by the strategy- Parameters:
actionRao- - action resultcontext- - instance of RuleActionContext
-
postProcessAction
Post process ofAbstractRuleActionRAO.- Parameters:
actionRao- - action resultcontext- - instance of RuleActionContext
-
shouldPerformAction
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
-