Class ActionTriggeringLimitAgendaFilter
- java.lang.Object
-
- de.hybris.platform.droolsruleengineservices.agendafilter.impl.AbstractRuleConfigurationAgendaFilter
-
- de.hybris.platform.droolsruleengineservices.agendafilter.impl.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 usedThe ActionTriggeringLimitAgendaFilter prevents a rule from being activated if the rule has exceeded the limit defined inAbstractRuleEngineRuleModel#getMaxAllowedRuns()
. It requiresRuleConfigurationRRD
facts to be inserted and declared as variable in the "when" clause for it to work properly (seeDefaultRuleConfigurationRRDProvider
configured at theDefaultCommerceRuleEngineService
). Note that this filter only checks theRuleConfigurationRRD#getMaxAllowedRuns()
andRuleConfigurationRRD#getCurrentRuns()
fields, the incrementing of the counter has to be done somewhere else (e.g. in AbstractRuleExecutableSupport).
-
-
Constructor Summary
Constructors Constructor Description ActionTriggeringLimitAgendaFilter()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
accept(org.kie.api.runtime.rule.Match match, RuleConfigurationRRD config)
Deprecated, for removal: This API element is subject to removal in a future version.is invoked by this class'AbstractRuleConfigurationAgendaFilter.accept(Match)
method.-
Methods inherited from class de.hybris.platform.droolsruleengineservices.agendafilter.impl.AbstractRuleConfigurationAgendaFilter
accept, getRuleConfig
-
-
-
-
Method Detail
-
accept
public boolean accept(org.kie.api.runtime.rule.Match match, RuleConfigurationRRD config)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractRuleConfigurationAgendaFilter
is invoked by this class'AbstractRuleConfigurationAgendaFilter.accept(Match)
method.- Specified by:
accept
in classAbstractRuleConfigurationAgendaFilter
-
-