Class ActionTriggeringLimitAgendaFilter

  • All Implemented Interfaces:
    org.kie.api.runtime.rule.AgendaFilter

    @Deprecated(since="1808",
                forRemoval=true)
    public class ActionTriggeringLimitAgendaFilter
    extends AbstractRuleConfigurationAgendaFilter
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 18.08 no longer used
    The ActionTriggeringLimitAgendaFilter prevents a rule from being activated if the rule has exceeded the limit defined in AbstractRuleEngineRuleModel#getMaxAllowedRuns(). It requires RuleConfigurationRRD facts to be inserted and declared as variable in the "when" clause for it to work properly (see DefaultRuleConfigurationRRDProvider configured at the DefaultCommerceRuleEngineService). Note that this filter only checks the RuleConfigurationRRD#getMaxAllowedRuns() and RuleConfigurationRRD#getCurrentRuns() fields, the incrementing of the counter has to be done somewhere else (e.g. in AbstractRuleExecutableSupport).