[rules-users] RE: firing specific rule

Matt Geis mgeis at yahoo.com
Thu Oct 18 13:02:27 EDT 2007


I ran into this unexpected behavior as well.  I took a look at the Drools source and found that the rule filters filter out rules that MEET the criteria (unlike the java Filename Filter, which filters out those that do NOT meet the criteria.

So, if you want to run a VERY specific rule, you could create something like RuleNameNotEqualsFilter, and that would ensure that all rules except the one you want to fire have no chance of firing.

Then, of course, you would want to make sure that the facts you assert meet the conditions you've set up in the LHS of the rule.

Matt


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the rules-users mailing list