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(a)yahoo.it>
À: rules-users(a)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-tp34943...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users