Have a read about nested accessors in Expert's documentation.
You should be able to achieve this using the MVEL dialect for your rule:-
when
Person( dob.year > 1972 )
...
The "then" part of a rule is either pure Java or MVEL and consequentially provided your RHS is valid syntax for whichever dialect it should be OK.
With kind regards,
Mike
Hi,
I’ve the problem in both When and Then.
Is it possible to define such a reference with Guvnor?
Thank you
Guy
eFrom: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Michael Anstis
Sent: Sunday, April 17, 2011 10:50 PM
To: Rules Users List
Subject: Re: [rules-users] Double Referencing
I don't understand your question. Sorry.
Are you having problems with the example you show in the "when" part of a rule, the "then" part or something else?
What type of examples were you wanting to receive?
Cheers,
Mike2011/4/17 Guy Moas <GMoas@fis-software.com>
Hi,
Could you please assist me whether I can double referencing issues Person.GetDOB().GetYear(); with Drools (Java, Guvnor)
Please try to send an exmaple
Many thanks,
Regards,
Guy Moas – Technical Project Manager
tel: +972 (73) 2608276 | mobile: +972 (52) 3624583 | X-Lite: 8276 | fax: +972 (73) 2608205
GMoas@fis-software.com | http://www.fis-software.com
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users