Interface ActionSupplementStrategy
-
- All Known Implementing Classes:
CartTotalThresholdPotentialPromotionMessageActionSupplementStrategy
,NoOpPotentialPromotionMessageActionSupplementStrategy
,QualifyingCategoryPotentialPromotionMessageActionSupplementStrategy
,QualifyingProductPotentialPromotionMessageActionSupplementStrategy
public interface ActionSupplementStrategy
Strategy for supplementing ofAbstractRuleActionRAO
.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
UUID_SUFFIX
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
isActionProperToHandle(AbstractRuleActionRAO actionRao, RuleActionContext context)
Checks if the action result is proper to be processed by the strategydefault void
postProcessAction(AbstractRuleActionRAO actionRao, RuleActionContext context)
Post process ofAbstractRuleActionRAO
.boolean
shouldPerformAction(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:
true
if action should be performed,false
- otherwise
-
-