Interface CompoundAgendaFilter
- All Superinterfaces:
org.kie.api.runtime.rule.AgendaFilter
- All Known Implementing Classes:
DefaultCompoundAgendaFilter
public interface CompoundAgendaFilter
extends org.kie.api.runtime.rule.AgendaFilter
Provides a compound AgendaFilter which calls the
AgendaFilter.accept(Match) method for its list of agenda filters (set
via setAgendaFilters(List). It returns true only if all the contained agenda filters return true. The
evaluation of the contained AgendaFilters is stopped as soon as the first agenda filter returns false (unless the
setForceAllEvaluations(boolean) field is set to true which forces the evaluation of all agenda filters.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAgendaFilter(org.kie.api.runtime.rule.AgendaFilter filter) adds the given agenda filter to this compound agenda filter.voidsetAgendaFilters(List<org.kie.api.runtime.rule.AgendaFilter> agendaFilters) set the given agenda filters for this compound agenda filter.voidsetForceAllEvaluations(boolean forceAllEvaluations) if set to true the compound agenda filter will evaluate all registered agenda filters via theirAgendaFilter.accept(Match)method (as opposed to stop evaluation when the first agenda filter returns false)Methods inherited from interface org.kie.api.runtime.rule.AgendaFilter
accept
-
Method Details
-
setForceAllEvaluations
void setForceAllEvaluations(boolean forceAllEvaluations) if set to true the compound agenda filter will evaluate all registered agenda filters via theirAgendaFilter.accept(Match)method (as opposed to stop evaluation when the first agenda filter returns false) -
setAgendaFilters
set the given agenda filters for this compound agenda filter. -
addAgendaFilter
void addAgendaFilter(org.kie.api.runtime.rule.AgendaFilter filter) adds the given agenda filter to this compound agenda filter.
-