此内容没有您所选择的语言版本。
8.7. Using the AgendaFilter
Procedure 8.2. Task
- To use a filter specify it while calling
fireAllRules()
. The following example permits only rules ending in the string"Test"
. All others will be filtered out:ksession.fireAllRules( new RuleNameEndsWithAgendaFilter( "Test" ) );
ksession.fireAllRules( new RuleNameEndsWithAgendaFilter( "Test" ) );
Copy to Clipboard Copied! Toggle word wrap Toggle overflow