[rules-users] is there anyway to access to lower level of an attribute in LHS
Tim.Nguyen at expeditors.com
Tim.Nguyen at expeditors.com
Thu Aug 30 14:44:41 EDT 2007
Hi group,
Currently I have to use eval to access to lower lever of an attribute. For
example:
rule "test rule"
when
$person: Person ()
eval (($person.getContact() != null) &&
($person.getContact().getEmail() == null))
then
System.out.println ("Email address is missing")
end
Is there anyway not to use eval. I would like to do something like this:
$person: Person ($contact: contact != null, $contact.getEmail() ==
null)
but it throws errors
Thanks,
Tim
More information about the rules-users
mailing list