There are two essentially different design patterns for using a production<br>rule system.<br><br>Both begin with session creation and the insertion of zero or more<br>facts meant to stay (more or less) til the end.<br><br>
The first one is using a cycle (of one or more repeats) of the sequence<br> - insert some more (I call them: &quot;trigger&quot;) facts<br> - call fireAllRules() to let the engine process what is there, in a ripple<br>   through ensuing rule firings, inserts, retracts and modifications, until<br>
   everything turns quiet; then this call returns.<br><br>The second one calls fireUntilHalt(), in a thread of its own, while other<br>threads react, over time, to external data sources, to insert other facts,<br>with the engine reacting all the time. WorkingMemory.halt() must be<br>
called to let this second call return.<br><br>No rules fire unless one of these two calls is active.<br><br>-W<br><br><br><div class="gmail_quote">On Mon, Jan 25, 2010 at 7:03 PM, ben780 <span dir="ltr">&lt;<a href="mailto:ben.craig2@gmail.com">ben.craig2@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi,<br>
<br>
I&#39;m also confused as well on the same topic as well.  I when I do an insert<br>
or update from rules, the rules are re-evaluated.<br>
<br>
When i do an insert or update from java code it does not re-evaluate the<br>
rules.  However, when I call fireAllRules it does fire the rules as expected<br>
based on the inserted/updated objects.<br>
<br>
Regards,<br>
<br>
Ben<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n3.nabble.com/confused-on-when-to-call-fireAllRules-tp92648p138288.html" target="_blank">http://n3.nabble.com/confused-on-when-to-call-fireAllRules-tp92648p138288.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>