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
2011/4/17 Guy Moas <[email protected]>
> Hi,
>
>
>
> I’ve the problem in both When and Then.
>
>
>
> Is it possible to define such a reference with Guvnor?
>
>
>
> Thank you
>
>
>
> Guy
>
>
>
> *eFrom:* [email protected] [mailto:
> [email protected]] *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,
>
> Mike
>
> 2011/4/17 Guy Moas <[email protected]>
>
> 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* *[image:
> cid:[email protected]]*
>
> tel: +972 (73) 2608276 *|* mobile: +972 (52) 3624583 *|* X-Lite: 8276* |*fax:
> +972 (73) 2608205
>
> *[email protected]* * |* http://www.fis-software.com
>
>
>
>
> _______________________________________________
> rules-users mailing list
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> _______________________________________________
> rules-users mailing list
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
<<image001.jpg>>
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
