Should predicate constraints be sensitive to whitespace?? I have the following rule with a predicate constraint:<br>rule &quot;test&quot;<br>
&nbsp;&nbsp;&nbsp; when<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; valObj : MyValuesObject(a:aVal, b:bVal, c:cVal -&gt;
((a.intValue() &lt;&nbsp; (1/780) * (b.intValue() + c.intValue()) &amp;&amp;
(b.intValue() + c.intValue()) &gt; 500000)<br>
&nbsp; &nbsp; then<br>
&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;Alert condition met on obj:&quot; + valObj);<br>
end<br>
<br>Inserting whitespace into the predicate results in the following exception:<br><br>org.drools.rule.InvalidRulePackage: unknown:155:85 mismatched token:
[@1723,5226:5227=&#39;\r\n&#39;,&lt;4&gt;,155:85]; expecting type &#39;)&#39;<br>
unknown:156:28 mismatched token: [@1752,5256:5256=&#39;(&#39;,&lt;23&gt;,156:28]; expecting type &#39;)&#39;<br>
<br>
If instead I use an eval on the LHS, I can insert whitespace without an exception.<br>
<br>In addition, I would like to know if there are any plans to simplify the syntax for similar types of rules, as the above is extremely unwieldy for the non-expert. <br>For instance, I would vastly prefer to write the following:
<br><br>rule &quot;test&quot;<br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; valObj : MyValuesObject(a:aVal, b:bVal, c:cVal)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (a &lt; (1/780)*(b+c))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((b + c) &gt; 500000)<br>&nbsp;&nbsp;&nbsp; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(&quot;Alert condition met on obj:&quot; + valObj);
<br>end<br><br><br>Also, since everything in rules needs to be an Object, is there any plan to make the operators deal with said Objects? That is, so I do not always have to de-reference with my eval or predicate objects with intValue() or floatValue() or whatever?&nbsp; 
<br><br>In our application, the user (i.e. not a drools or java expert) will be writing the rules. The current syntax requirements for encoding the above simple rule makes me very nervous about our users ever being able to use the rules effectively.
<br><br>Thanks,<br>Justine<br><br><br><br><br><br>