<br> Did you tried:<br><br> Person( contact != null, contact.email == null )<br><br> ?<br><br> Edson<br><br><br><div><span class="gmail_quote">2007/8/30, <a href="mailto:Tim.Nguyen@expeditors.com">Tim.Nguyen@expeditors.com
</a> <<a href="mailto:Tim.Nguyen@expeditors.com">Tim.Nguyen@expeditors.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi group,<br><br>Currently I have to use eval to access to lower lever of an attribute. For<br>example:<br><br>rule "test rule"<br> when<br> $person: Person ()<br> eval (($person.getContact() != null) &&
<br>($person.getContact().getEmail() == null))<br> then<br> System.out.println ("Email address is missing")<br>end<br><br><br>Is there anyway not to use eval. I would like to do something like this:<br>
$person: Person ($contact: contact != null, $contact.getEmail() ==<br>null)<br><br>but it throws errors<br><br><br>Thanks,<br><br>Tim<br><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">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div>
<br><br clear="all"><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<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>