[rules-users] Enumerations for nested classes

gab acque_profonde at yahoo.it
Wed Nov 9 13:26:00 EST 2011


Hi all,
I have a problem with data enumeration for nested classes in BRLs.

I have two classes, Promotion and Program. Promotion has a property named
"program" of type Program, which has a string property called "code".
I did a couple of enumeration in this way:

[Program.code] = ['ABC=First Program','XYZ=Second Program']
[Promotion.program.code] = ['ABC=First Program','XYZ=Second Program']

With decision table they work as expected, but in BRL rules only the first
works (the one with no nested classes), while in the other case the
drop-down list doesn't appear and it's shown only a free editable field.

How can it be? Should I write something in a different way? Is it a bug?

I'm using version 5.2.


Thanks in advance.


--
View this message in context: http://drools.46999.n3.nabble.com/Enumerations-for-nested-classes-tp3494392p3494392.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list