<br>&nbsp;&nbsp; Do you mean like:<br><br>There is a client<br>&nbsp;&nbsp; - which is adult<br>&nbsp;&nbsp; - whose wife is adult<br><br>&nbsp;&nbsp;&nbsp; Mapped to:<br><br>Client( age &gt; 17, spouse.age &gt; 17 )<br><br>&nbsp;&nbsp;&nbsp; Take a look at the manual and check for the &quot;-&quot; special character.<br>
<br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><br><div class="gmail_quote">2008/5/27  &lt;<a href="mailto:ringsah@comcast.net">ringsah@comcast.net</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<font size="2">
<p><font face="Verdana, sans-serif">Hi All,</font></p>
<p><font face="Verdana, sans-serif">I am new to Drools - my company is evaluating it for use in a project. We are doing a proof of concept, and we are developing a DSL. One of our DSL expressions is</font></p>
<p><font face="Verdana, sans-serif">&quot;client is an adult&quot;</font></p>
<p><font face="Verdana, sans-serif">which is defined as</font></p>
<p><font face="Verdana, sans-serif">Client(age &gt; 17)</font></p>
<p><font face="Verdana, sans-serif">The problem we have is that there are many different types of people in our system that we would like to test for adulthood. For example, we have the client&#39;s spouse (Client.spouse), and the clients children (Client.children), who we also want to test for adulthood. Do we need to make a different DSL expression for each case, or is there a way to &quot;genericize&quot; the DSL expression so it could be used for any person?</font></p>

<p><font face="Verdana, sans-serif">TIA,</font></p>
<p><font face="Verdana, sans-serif">-Hans</font></p></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><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>