Interface ActionSupplementStrategy

All Known Implementing Classes:
CartTotalThresholdPotentialPromotionMessageActionSupplementStrategy, NoOpPotentialPromotionMessageActionSupplementStrategy, QualifyingCategoryPotentialPromotionMessageActionSupplementStrategy, QualifyingProductPotentialPromotionMessageActionSupplementStrategy

public interface ActionSupplementStrategy
Strategy for supplementing of AbstractRuleActionRAO.
  • Field Details

  • Method Details

    • isActionProperToHandle

      boolean isActionProperToHandle(AbstractRuleActionRAO actionRao, RuleActionContext context)
      Checks if the action result is proper to be processed by the strategy
      Parameters:
      actionRao - - action result
      context - - instance of RuleActionContext
    • postProcessAction

      default void postProcessAction(AbstractRuleActionRAO actionRao, RuleActionContext context)
      Post process of AbstractRuleActionRAO.
      Parameters:
      actionRao - - action result
      context - - 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 result
      context - - instance of RuleActionContext
      Returns:
      true if action should be performed, false - otherwise