Seems as if you should be able to use a predicate instead of an eval, but there isn't support for nested properties in direct LHS evaluation yet (or, at least, last I heard)

On 10/26/06, Mark Emeny <[EMAIL PROTECTED]> wrote:

Hi,

 

I am just trying to get to grips with Drools and need a bit of help solving what I think is a simple problem.

 

I have a class "Party" that features the getter "getName()". This returns an object of type "PersonName". This class in turn features a "getFirstName()" getter.

 

How can I create a rule where the LHS is based on some fact regarding the first name of the party? I have so far only been able to achieve this via an "eval" but I'm sure there must be a way using a conventional field constraint(?)

 

Many thanks,

 

Mark Emeny.




--
Geoffrey Wiseman

Reply via email to