Interface RuleConditionConsumptionSupport

  • All Known Implementing Classes:
    DefaultRuleConditionConsumptionSupport

    public interface RuleConditionConsumptionSupport
    Contract that provides support for rule conditions that deal with consumed products
    • Method Detail

      • newProductConsumedCondition

        java.util.List<RuleIrCondition> newProductConsumedCondition​(@Nonnull
                                                                    RuleCompilerContext context,
                                                                    java.lang.String orderEntryRaoVariable)
        Creates product consumed condition for the given compiler context and associated variable for OrderEntryRAO
        Parameters:
        context - instance of RuleCompilerContext
        orderEntryRaoVariable - name of the variable for associated OrderEntryRAO
        Returns:
        list of RuleIrCondition that represent product consumed condition