Yes that&#39;s right.. can you share some tests to see how you are inserting the facts?<br><br><div class="gmail_quote">2011/7/11 Edson Tirelli <span dir="ltr">&lt;<a href="mailto:ed.tirelli@gmail.com">ed.tirelli@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><br></div><div>   It is not possible to know, looking only at the screenshots that you sent, what is the problem. Are the values null at the time you insert them into the session? If you modify them after inserting them into the session, are you properly notifying the engine?</div>

<div><br></div><div>   Edson</div><div><div></div><div class="h5"><br><br><div class="gmail_quote">2011/7/11 pamerida <span dir="ltr">&lt;<a href="mailto:elpamm@hotmail.com" target="_blank">elpamm@hotmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi everyone,<br>
I have a couple of rules, I just want to show a message when one of the<br>
fields is null and heres my code:<br>
<br>
21.     |       rule &#39;rule1&#39;<br>
22.     |       salience 9990<br>
23.     |       when<br>
24.     |       Cuscar(bgm.size &gt; 0 &amp;&amp; bgm[0].c1001== null );<br>
25.     |       then<br>
26.     |       logger.log(&quot;Rule 1 activated&quot;);<br>
27.     |<br>
28.     |       end<br>
29.     |<br>
30.     |       rule &#39;rule2&#39;<br>
31.     |       salience 9970<br>
32.     |       when<br>
33.     |       Cuscar(bgm.size &gt; 0 &amp;&amp; bgm[0].c1004== null );<br>
34.     |       then<br>
35.     |       logger.log(&quot;Rule 2 activated&quot;);<br>
36.     |<br>
37.     |       end<br>
<br>
And here&#39;s the result:<br>
<br>
Scenario #1<br>
<br>
<a href="http://drools.46999.n3.nabble.com/file/n3160376/debug2.jpg" target="_blank">http://drools.46999.n3.nabble.com/file/n3160376/debug2.jpg</a><br>
with this values when I call fire all rules I dont get any message (its ok<br>
because none of the elements is null)<br>
<br>
Scenario #2<br>
<a href="http://drools.46999.n3.nabble.com/file/n3160376/debug1.jpg" target="_blank">http://drools.46999.n3.nabble.com/file/n3160376/debug1.jpg</a><br>
<br>
with this values when I call fire all rules both rules are fired so i get<br>
both messages &quot;Rule 1 activated&quot; and &quot;Rule 2 activated&quot; (Incorrect - it<br>
should only fire rule number 1 cause only the element c1001 is null)<br>
<br>
Scenario #3<br>
<a href="http://drools.46999.n3.nabble.com/file/n3160376/debug3.jpg" target="_blank">http://drools.46999.n3.nabble.com/file/n3160376/debug3.jpg</a><br>
<br>
with this values when I call fire all rules I dont get any message<br>
(Incorrect - it should activate rule number 2)<br>
<br>
This is my model:<br>
<a href="http://drools.46999.n3.nabble.com/file/n3160376/rules-drools-model-1.0.0-SNAPSHOT-jar-with-dependencies.jarrules-drools-model-1.0.0-SNAPSHOT-jar-with-dependencies.jar" target="_blank">http://drools.46999.n3.nabble.com/file/n3160376/rules-drools-model-1.0.0-SNAPSHOT-jar-with-dependencies.jar<br>

rules-drools-model-1.0.0-SNAPSHOT-jar-with-dependencies.jar</a><br>
<br>
Can anybody help me please?, I dont know what am I doing wrong, thank you<br>
very much :) ....<br>
<font color="#888888"><br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-firing-wrong-rules-tp3160376p3160376.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-firing-wrong-rules-tp3160376p3160376.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" target="_blank">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><br clear="all"><br></div></div><font color="#888888">-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com" target="_blank">www.jboss.com</a><br>

</font><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>
<br></blockquote></div><br><br clear="all"><br>-- <br> - CTO @ <a href="http://www.plugtree.com">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
 - Co-Founder @ <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -<br>