This content has been marked as final.
Show 2 replies
-
1. Re: Inside Working Memory
shane.bryzak Sep 12, 2006 2:18 AM (in response to elangomca)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:
"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()". -
2. Re: Inside Working Memory
mark.proctor Sep 28, 2006 1:15 PM (in response to elangomca)If you use the audit view you can see exactly what is happenig. All the work is done during the working memory action phase (see 2 phase system in the manual). All fireAlRules() does is tell the rule that is at the top of the agenda to fire.