<html><body>
<DIV>Edson,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks, I had looked at the special "-" character, and had considered doing something like you suggested. It's just that my colleagues had developed the "client is an adult" expression, and wanted to get reuse out of it, rather than doing something different for every situation where there was a person to be checked for adulthood, like for the spouse of the original client.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I know it doesn't make much sense, because its a different entity, perhaps with a relationship to the original entity. It's just that we are new to this, and we are not sure how complete the documentation is, and if there is some syntax we are missing that could be used in this situation.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>-Hans</DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-------------- Original message -------------- <BR>From: "Edson Tirelli" &lt;tirelli@post.com&gt; <BR><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 "-" 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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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">"client is an adult"</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'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 "genericize" 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> </BLOCKQUOTE></body></html>