2.5.7.3. Agenda Filters

2.5.7.3. Agenda Filters

AgendaFilters
Figure 2.25. AgendaFilters

Filters are optional implementations of the filter interface which are used to allow/or deny an activation from firing. What you filter is entirely up to your implementation. Drools provides the following convenience default implementations

To use a filter specify it while calling FireAllRules. The following example will filter out all rules ending with the text "Test":

workingMemory.fireAllRules( new RuleNameEndsWithAgendaFilter( "Test" ) );