Class DefaultCompoundAgendaFilter

java.lang.Object
de.hybris.platform.droolsruleengineservices.agendafilter.impl.DefaultCompoundAgendaFilter
All Implemented Interfaces:
CompoundAgendaFilter, org.kie.api.runtime.rule.AgendaFilter

public class DefaultCompoundAgendaFilter extends Object implements CompoundAgendaFilter
Provides a default implementation of the CompoundAgendaFilter used by the DefaultAgendaFilterFactory.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(org.kie.api.runtime.rule.Match match)
     
    void
    addAgendaFilter(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 boolean
     
    void
    setAgendaFilters(List<org.kie.api.runtime.rule.AgendaFilter> agendaFilters)
    set the given agenda filters for this compound agenda filter.
    void
    setForceAllEvaluations(boolean forceAllEvaluations)
    if set to true the compound agenda filter will evaluate all registered agenda filters via their AgendaFilter.accept(Match) method (as opposed to stop evaluation when the first agenda filter returns false)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultCompoundAgendaFilter

      public DefaultCompoundAgendaFilter()
  • Method Details

    • accept

      public boolean accept(org.kie.api.runtime.rule.Match match)
      Specified by:
      accept in interface org.kie.api.runtime.rule.AgendaFilter
    • getAgendaFilters

      protected List<org.kie.api.runtime.rule.AgendaFilter> getAgendaFilters()
    • isForceAllEvaluations

      protected boolean isForceAllEvaluations()
    • setForceAllEvaluations

      public void setForceAllEvaluations(boolean forceAllEvaluations)
      Description copied from interface: CompoundAgendaFilter
      if set to true the compound agenda filter will evaluate all registered agenda filters via their AgendaFilter.accept(Match) method (as opposed to stop evaluation when the first agenda filter returns false)
      Specified by:
      setForceAllEvaluations in interface CompoundAgendaFilter
    • setAgendaFilters

      public void setAgendaFilters(List<org.kie.api.runtime.rule.AgendaFilter> agendaFilters)
      Description copied from interface: CompoundAgendaFilter
      set the given agenda filters for this compound agenda filter.
      Specified by:
      setAgendaFilters in interface CompoundAgendaFilter
    • addAgendaFilter

      public void addAgendaFilter(org.kie.api.runtime.rule.AgendaFilter filter)
      Description copied from interface: CompoundAgendaFilter
      adds the given agenda filter to this compound agenda filter.
      Specified by:
      addAgendaFilter in interface CompoundAgendaFilter