[rules-users] Double Referencing

Michael Anstis michael.anstis at gmail.com
Sun Apr 17 16:27:48 EDT 2011


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 <GMoas at fis-software.com>

>  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 at lists.jboss.org [mailto:
> rules-users-bounces at 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,
>
> Mike
>
> 2011/4/17 Guy Moas <GMoas at 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*                              *[image:
> cid:image001.jpg at 01CB953C.44421930]*
>
> tel: +972 (73) 2608276 *|* mobile: +972 (52) 3624583 *|* X-Lite: 8276* |*fax: +972 (73) 2608205
>
> *GMoas at fis-software.com* * |* http://www.fis-software.com
>
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110417/1a8bf4de/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1559 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20110417/1a8bf4de/attachment.jpe 


More information about the rules-users mailing list