From what I understand, fireAllRules() itself doesn't really do
much. Most of the actual rule evaluation work occurs while you're asserting objects
into the working memory. Here's a snippet from the JBoss Rules documentation:
anonymous wrote :
| "Assertion" is the act of telling the working memory about the facts.
WorkingMemory.assertObject(yourObject) for example. When you assert a fact, it is examined
for matches against the rules etc. This means ALL of the work is done during assertion;
however, no rules are executedl you call "fireAllRules()" after you have
finished asserting your facts. This is a common misunderstanding by people who think the
work happens when you call "fireAllRules()".
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970895#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...