Don&#39;t use not(exists( X() )).<br>   not( X() )  <br>means &quot;there is no X&quot;. The error may be due to constraints, but you&#39;d have to show us the entire DSLR condition and its DSL definition.<br>-W<br><br><br>
<div class="gmail_quote">2011/1/11 maverik j <span dir="ltr">&lt;<a href="mailto:maverikj348@gmail.com">maverikj348@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi,</div>
<div> </div>
<div>  I have been trying to add not exists constraint in dslr but its failing to parse the dslr. Here is what I am trying to do in DSLR</div>
<div><font size="2">
<p>[when][][<u>Tt</u>]here is at least one {entity}= not(exists {entity}: {entity}()) </p>
<p>If I simply use the exists constraint here then it works well. But then after adding not to it, its not getting parsed correctly.</p>
<p>error I am geeting is:</p><font color="#ff0000" size="2"><font color="#ff0000" size="2">
<p>[10,27]: [ERR 102] Line 10:27 mismatched input &#39;,&#39; expecting &#39;)&#39; in rule &quot;Rule1&quot; in pattern Person</p>
<p><font color="#000000">not sure whats going wrong here, if it is expected to work this way?</font></p>
<p><font color="#000000">thanks,</font></p>
<p><font color="#000000">-m</font></p></font></font></font></div>
<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>
<br></blockquote></div><br>