Class DefaultCompoundAgendaFilter
java.lang.Object
de.hybris.platform.droolsruleengineservices.agendafilter.impl.DefaultCompoundAgendaFilter
- All Implemented Interfaces:
CompoundAgendaFilter,org.kie.api.runtime.rule.AgendaFilter
Provides a default implementation of the CompoundAgendaFilter used by the
DefaultAgendaFilterFactory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(org.kie.api.runtime.rule.Match match) voidaddAgendaFilter(org.kie.api.runtime.rule.AgendaFilter filter) adds the given agenda filter to this compound agenda filter.protected List<org.kie.api.runtime.rule.AgendaFilter>protected booleanvoidsetAgendaFilters(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)
-
Constructor Details
-
DefaultCompoundAgendaFilter
public DefaultCompoundAgendaFilter()
-
-
Method Details
-
accept
public boolean accept(org.kie.api.runtime.rule.Match match) - Specified by:
acceptin interfaceorg.kie.api.runtime.rule.AgendaFilter
-
getAgendaFilters
-
isForceAllEvaluations
protected boolean isForceAllEvaluations() -
setForceAllEvaluations
public void setForceAllEvaluations(boolean forceAllEvaluations) Description copied from interface:CompoundAgendaFilterif 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)- Specified by:
setForceAllEvaluationsin interfaceCompoundAgendaFilter
-
setAgendaFilters
Description copied from interface:CompoundAgendaFilterset the given agenda filters for this compound agenda filter.- Specified by:
setAgendaFiltersin interfaceCompoundAgendaFilter
-
addAgendaFilter
public void addAgendaFilter(org.kie.api.runtime.rule.AgendaFilter filter) Description copied from interface:CompoundAgendaFilteradds the given agenda filter to this compound agenda filter.- Specified by:
addAgendaFilterin interfaceCompoundAgendaFilter
-