<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Looks like a bug. Moral of the story is always try an upgrade during
    candidate release cycle, or earlier, so you can feedback bugs
    quicker :)<br>
    <br>
    Log a jira, preferably with a self contained test, along the lines
    of MiscTest. And we'll try and fix it for 5.3.<br>
    <br>
    Mark<br>
    On 09/07/2011 06:39, Amin Mohammed-Coleman wrote:
    <blockquote
      cite="mid:EAEAD46D-41DB-47D1-BCE4-9C00D80BC849@gmail.com"
      type="cite">Hello there
      <div><br>
      </div>
      <div>I have the following object model</div>
      <div><br>
      </div>
      <div>ClassA</div>
      <div>&nbsp;&nbsp; String name</div>
      <div>&nbsp;&nbsp; ClassB classB</div>
      <div><br>
      </div>
      <div>ClassB</div>
      <div>&nbsp;&nbsp; String status</div>
      <div>&nbsp;&nbsp; String context</div>
      <div><br>
      </div>
      <div>Before upgrading drools 5.2.0.Final I had the following rule:</div>
      <div><br>
      </div>
      <div>when</div>
      <div>ClassA ( classB.status =='Open' &amp;&amp; name =='Hello'
        &amp;&amp; classB.context='jump')</div>
      <div>then</div>
      <div>System.out.println("Hit rule");</div>
      <div>end</div>
      <div><br>
      </div>
      <div>However after upgrading to 5.2.0 the above rule does not get
        fired, instead I have to do the following:</div>
      <div><br>
      </div>
      <div>
        <div>when</div>
        <div>ClassA (&nbsp;<b>name =='Hello' </b>&amp;&amp;&nbsp;classB.status
          =='Open' &amp;&amp; &nbsp;classB.context='jump')</div>
        <div>then</div>
        <div>System.out.println("Hit rule");</div>
        <div>end</div>
      </div>
      <div><br>
      </div>
      <div>or&nbsp;</div>
      <div><br>
      </div>
      <div>
        <div>when</div>
        <div>ClassA ( classB.status =='Open' &amp;&amp;
          &nbsp;classB.context='jump' &amp;&amp;<b> name=='Hello'</b>)</div>
        <div>then</div>
        <div>System.out.println("Hit rule");</div>
        <div>end</div>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>Has there been a change causing the original rule not to
        work? Or should the approach always be to use</div>
      <div><br>
      </div>
      <div>
        <div>
          <div>when</div>
          <div>ClassA (&nbsp;<b>name =='Hello'&nbsp;</b>&amp;&amp;&nbsp;classB.status
            =='Open' &amp;&amp; &nbsp;classB.context='jump')</div>
          <div>then</div>
          <div>System.out.println("Hit rule");</div>
          <div>end</div>
        </div>
        <div><br>
        </div>
        <div>or&nbsp;</div>
        <div><br>
        </div>
        <div>
          <div>when</div>
          <div>ClassA ( classB.status =='Open' &amp;&amp;
            &nbsp;classB.context='jump' &amp;&amp;<b>&nbsp;name=='Hello'</b>)</div>
          <div>then</div>
          <div>System.out.println("Hit rule");</div>
          <div>end</div>
        </div>
      </div>
      <div><br>
      </div>
      <div>Any help would be appreciated</div>
      <div><br>
      </div>
      <div>Thanks</div>
      <div>Amin</div>
      <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>