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.

Reply via email to