
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
RuleNameEndWithAgendaFilter
RuleNameEqualsAgendaFilter
RuleNameStartsWithAgendaFilter
RuleNameMatchesAgendaFilter
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" ) );