<div> Lock-on-active does not prevent rule evaluation. It prevents only rule activation.</div><div><br></div><div> The reason nodes are still evaluated is because Rete eagerly calculates all partial matches, because as soon as you move your execution to another group, the previously locked group will start activating rules again and so the partial matches are already calculated. I understand that this might not be desired in some cases, but that is how rete in general works.</div>
<div><br></div><div> Edson</div><br><br><div class="gmail_quote">2010/7/16 mmarmol <span dir="ltr"><<a href="mailto:marcelo.marmol@gmail.com">marcelo.marmol@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
He guys, I am using the meta-data lock-on-active on some rules and is working<br>
great, but i have seen rules with lock-on-active = true are been eveluated<br>
everytime the facts are modified even after they have been fired. Why is<br>
that? I dont see the point of evaluating a rule with lock-on-active true<br>
when it has already fired, it wont fire again. There is a way to resolve<br>
this? or to implement something to avoid reevaluation? I am using drools<br>
5.1.0M2 with a StatefulKnowledgeSession.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/lock-on-active-why-keeps-evaluating-tp973374p973374.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/lock-on-active-why-keeps-evaluating-tp973374p973374.html</a><br>
Sent from the Drools - User mailing list archive at Nabble.com.<br>
</font><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>