<h1 style="font-weight: normal;" class="title"><font size="2"><a id="d0e1">In the 5.2.0 Drools Introduction and General User Guide</a>, there&#39;s section 2.1.3.1, Free Form expressions in Constraints (New Parser). It contains several examples:</font><br>
</h1>#1 Person( age * 2 &gt; $anotherPersonsAge + 2 ) <br>#2 Person( addresses[&quot;home&quot;].streetName.startsWith( &quot;High Park&quot; ) )<br>#3 Person( isAdult() )<br><br>#1 does not compile: Unable to build constraint as  &#39;age * 2&#39; is invalid : [Rule name=&#39;exa1&#39;]<br>
<br>#2 works - although I&#39;d very much prefer not to be swamped with MVEL extensions unless I ask for it.<br><br>#3 does not compile: Unable to Analyse Expression isAdult():<br>[Error: no such identifier: isAdult]<br>[Near : {... isAdult() ....}]<br>
<br>Neither rule name nor line number is provided.<br><br>Would it please be possible to have a precise statement what one <i>can</i> write as a constraint?<br><br><br>&lt;quote&gt;<br><a id="d0e371">This was also important for us to start to move towards a
      single consistent grammer for both the &quot;when&quot; left hand side and &quot;then&quot;
      right hand side.<br>&lt;/quote&gt;<br><br>It seems that example #2 increases the grammar gap because the constraint expression can certainly not used on the RHS.<br><br><br>&lt;quote&gt;<br></a><a id="d0e371">As previously we had to document the restricted
      limitations of a field constraint on the LHS compared to expressions
      used inside of an &#39;eval&#39; or used on the RHS.</a><a id="d0e371"><br> &lt;/quote&gt;<br><br>I&#39;m sorry, but I do not understand the meaning of this sentence. What does it mean, please?<br><br>Cheers<br>Wolfgang<br>
<br><br></a>