[rules-users] Enumerations for nested classes

Vincent LEGENDRE vincent.legendre at eurodecision.com
Wed Nov 9 13:38:08 EST 2011


bug : https://issues.jboss.org/browse/GUVNOR-1573
fixed in 5.3

But I think you does not need your second enum. Guvnor will infer that (in 5.3).


----- Mail original -----
De: "gab" <acque_profonde at yahoo.it>
À: rules-users at lists.jboss.org
Envoyé: Mercredi 9 Novembre 2011 19:26:00
Objet: [rules-users] Enumerations for nested classes

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.
_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




More information about the rules-users mailing list