<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 11/07/2011 23:47, Mauricio Salatino wrote:
    <blockquote
cite="mid:CANzbnyUniM0D+HufYHzoKmPhnxUCf-K6_LxhEh900Px=E8AEZw@mail.gmail.com"
      type="cite">Yes that's right.. can you share some tests to see how
      you are inserting the facts?<br>
    </blockquote>
    and make sure it's drools 5.2<br>
    <br>
    Mark<br>
    <blockquote
cite="mid:CANzbnyUniM0D+HufYHzoKmPhnxUCf-K6_LxhEh900Px=E8AEZw@mail.gmail.com"
      type="cite"><br>
      <div class="gmail_quote">2011/7/11 Edson Tirelli <span dir="ltr">&lt;<a
            moz-do-not-send="true" 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>&nbsp;&nbsp; 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>&nbsp;&nbsp; Edson</div>
          <div>
            <div class="h5"><br>
              <br>
              <div class="gmail_quote">2011/7/11 pamerida <span
                  dir="ltr">&lt;<a moz-do-not-send="true"
                    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. &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; rule 'rule1'<br>
                  22. &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; salience 9990<br>
                  23. &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; when<br>
                  24. &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; Cuscar(bgm.size &gt; 0 &amp;&amp;
                  bgm[0].c1001== null );<br>
                  25. &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; then<br>
                  26. &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; logger.log("Rule 1 activated");<br>
                  27. &nbsp; &nbsp; |<br>
                  28. &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; end<br>
                  29. &nbsp; &nbsp; |<br>
                  30. &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; rule 'rule2'<br>
                  31. &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; salience 9970<br>
                  32. &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; when<br>
                  33. &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; Cuscar(bgm.size &gt; 0 &amp;&amp;
                  bgm[0].c1004== null );<br>
                  34. &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; then<br>
                  35. &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; logger.log("Rule 2 activated");<br>
                  36. &nbsp; &nbsp; |<br>
                  37. &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; end<br>
                  <br>
                  And here's the result:<br>
                  <br>
                  Scenario #1<br>
                  <br>
                  <a moz-do-not-send="true"
                    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 moz-do-not-send="true"
                    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 "Rule 1 activated" and "Rule 2
                  activated" (Incorrect - it<br>
                  should only fire rule number 1 cause only the element
                  c1001 is null)<br>
                  <br>
                  Scenario #3<br>
                  <a moz-do-not-send="true"
                    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 moz-do-not-send="true"
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
                      moz-do-not-send="true"
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 moz-do-not-send="true"
                      href="mailto:rules-users@lists.jboss.org"
                      target="_blank">rules-users@lists.jboss.org</a><br>
                    <a moz-do-not-send="true"
                      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>
            &nbsp; Edson Tirelli<br>
            &nbsp; JBoss Drools Core Development<br>
            &nbsp; JBoss by Red Hat @ <a moz-do-not-send="true"
              href="http://www.jboss.com" target="_blank">www.jboss.com</a><br>
          </font><br>
          _______________________________________________<br>
          rules-users mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
          <a moz-do-not-send="true"
            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>
      &nbsp;- CTO @ <a moz-do-not-send="true" href="http://www.plugtree.com">http://www.plugtree.com</a>&nbsp;
      <br>
      &nbsp;- MyJourney @ <a moz-do-not-send="true"
        href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
      &nbsp;- Co-Founder @ <a moz-do-not-send="true"
        href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br>
      &nbsp;<br>
      &nbsp;- Salatino "Salaboy" Mauricio -<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>