Assuming I have folllowing structure of an object A that I want to use
for building LHS conditions:

Class A {
        b: Class B {
                attr1: String;
        }
        ...
}

I get error messages if I try get A.B.attr1 in the following way:

When 
        a: A($param1: b.attr1)
        ...
Then
...
End

Isn't drools using the JAVA beans mechanism to get attributes from
aggregated classes? Right now, I need to implement a public method in A
which returns b.attr1, like:

Class A {
        b: Class B {
                attr1: String;
        }
        public getAttr1() { return b.getAttr1(); }
        ...
}

...and use it in the following way:

When 
        a: A($param1: attr1)
Then
...
End

Any comments?

Thanks,
Torsten.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to