Re: [rules-users] custom defined types in setter and getters

2007-10-03 Thread Steven Williams
No - you can use any java object as a fact, so both of your classes are fine. For instance you could do: when Car($p: paint) then System.out.println($p.getName()); end and using MVEL you could do: when Car(paint.name == "red") then ... On 10/4/07, jack wu <[EMAIL PROTECTED]> wrote: > >

[rules-users] custom defined types in setter and getters

2007-10-03 Thread jack wu
Hi, i suppose the second form of fact is not supported. but i'd like to confirm. in other words, you can only have setters and getters that return basic java types. is that right? can i return java collections such as array and map? the documentation is not clear on that. thanks. public clas