On 19 July 2011 22:52, Jamie <span dir="ltr">&lt;<a href="mailto:jshaw@llbean.com">jshaw@llbean.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This rule used to compile in the IDE under Drools 5.1.1:<br>
<br>
     when<br>
          $order: OrderFact(numberOfCreditCardDeclines &gt;<br>
FraudCCDeclines.find().getCreditCardDeclinesThreshold())<br>
<br></blockquote><div><br>For Drools 5.1.1, this is syntactically incorrect. All but very simple expressions on the right hand side of a comparison operator must be enclosed in parentheses. A simple literal is one of the forms that are acceptable without parentheses.<br>
<br>5.2.0 is much more tolerant.<br><br>-W<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
     then<br>
          //do something<br>
<br>
but it&#39;s breaking since I moved to 5.2, although it runs fine when I deploy<br>
it to the server.  Any idea why?<br>
<br>
If I make the &gt; comparison static, like this:<br>
<br>
     when<br>
          $order: OrderFact(numberOfCreditCardDeclines &gt; 5)<br>
<br>
     then<br>
          //do something<br>
<br>
It also works fine.  What&#39;s wrong?<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Rule-not-compiling-in-IDE-after-migration-to-5-2-tp3183689p3183689.html" target="_blank">http://drools.46999.n3.nabble.com/Rule-not-compiling-in-IDE-after-migration-to-5-2-tp3183689p3183689.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></blockquote></div><br>