That is correct.<br><br>Rules LHS is evaluated as rules are inserted.<br><br>Calling fireAllRules() causes the activations on the agenda (caused by evaluation of the LHS) to be executed.<br><br><div class="gmail_quote">On 15 December 2011 16:00, freejava <span dir="ltr">&lt;<a href="mailto:freejava3@gmail.com">freejava3@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
When I insert the object in the Statefulsession the rules are getting<br>
evaluated. Is this the correct behaviour ?<br>
<br>
I was under the impression that rules are evaluated only when you call<br>
fireAllRules() on the session.<br>
<br>
Any help would be appreciated.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Rules-firing-during-insert-tp3589050p3589050.html" target="_blank">http://drools.46999.n3.nabble.com/Rules-firing-during-insert-tp3589050p3589050.html</a><br>

Sent from the Drools: User forum 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></span></blockquote></div><br>