<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>done (with repo+src): 
<LI><A id=key-val href="https://issues.jboss.org/browse/GUVNOR-1573" rel=12442635>GUVNOR-1573</A></LI><BR><BR>
<HR id=zwchr>
<B>De: </B>"Michael Anstis" &lt;michael.anstis@gmail.com&gt;<BR><B>À: </B>"Rules Users List" &lt;rules-users@lists.jboss.org&gt;<BR><B>Envoyé: </B>Mardi 26 Juillet 2011 18:20:28<BR><B>Objet: </B>Re: [rules-users] enums and subclass under guvnor : no listbox<BR><BR>Sounds like it.<BR><BR>When raising the JIRA please can you provide an example repo?<BR><BR>Also, please state whether the sub-class a declared type or a POJO in a JAR model.<BR><BR>Thanks,<BR><BR>Mike<BR><BR>
<DIV class=gmail_quote>2011/7/26 Vincent LEGENDRE <SPAN dir=ltr>&lt;<A href="mailto:vincent.legendre@eurodecision.com" target=_blank>vincent.legendre@eurodecision.com</A>&gt;</SPAN><BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class=gmail_quote>
<DIV>
<DIV style="FONT-FAMILY: Times New Roman; COLOR: rgb(0,0,0); FONT-SIZE: 12pt">
<P>Hi all</P>
<P>&nbsp;</P>
<P>I have two simple classes : The parent class has a field that is an enum. The other class inherits from the parent class.</P>
<P>Under Guvnor, everything is OK for the parent class : when I add a constraint on the "enum" field, I see a listbox with enum values</P>
<P>But for sub-class, the same field has no listbox, but only a free value text input.</P>
<P>&nbsp;</P>
<P>Can you confirm this is a bug? I use Guvnor 5.2.Final.</P>
<P>Thanks !</P>
<P><BR>The code :</P><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2><FONT face="Courier New, courier, monaco, monospace, sans-serif"><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2>
<P align=left><B><FONT face="Courier New, courier, monaco, monospace, sans-serif">public</FONT></B></P></FONT></FONT><FONT face="Courier New, courier, monaco, monospace, sans-serif"><FONT color=#000000 size=2></FONT><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2><B>enum</B></FONT></FONT></FONT><FONT size=2><FONT color=#000000 face="Courier New, courier, monaco, monospace, sans-serif"> Status {</FONT> 
<P align=left></P></FONT><I><FONT color=#0000c0 size=2><FONT color=#0000c0 size=2><B><FONT face="Courier New, courier, monaco, monospace, sans-serif">&nbsp;&nbsp;&nbsp; OK</FONT></B></FONT></FONT></I></FONT></FONT><B><FONT face="Courier New, courier, monaco, monospace, sans-serif"><FONT size=2>, </FONT><I><FONT color=#0000c0 size=2><FONT color=#0000c0 size=2>KO</FONT></FONT></I></FONT></B></FONT><B><FONT face="Courier New, courier, monaco, monospace, sans-serif"><FONT size=2>, </FONT><I><FONT color=#0000c0 size=2><FONT color=#0000c0 size=2>UNKNOWN</FONT></FONT></I></FONT></B><FONT size=2><B><FONT face="Courier New, courier, monaco, monospace, sans-serif">; 
<P align=left><FONT face="Courier New, courier, monaco, monospace, sans-serif"></FONT></P></FONT></B><B><FONT face="Courier New, courier, monaco, monospace, sans-serif">
<P align=left><FONT face="Courier New, courier, monaco, monospace, sans-serif">}</FONT></P>
<P></P></FONT></B></FONT><FONT face="Courier New, courier, monaco, monospace, sans-serif"><B>public</B></FONT><FONT face="Courier New, courier, monaco, monospace, sans-serif"><FONT size=2> </FONT><B><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2>class</FONT></FONT></B></FONT><FONT size=2><FONT face="Courier New, courier, monaco, monospace, sans-serif"> MotherClass {</FONT> 
<P align=left></P></FONT><B><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2><FONT face="Courier New, courier, monaco, monospace, sans-serif">&nbsp;&nbsp;&nbsp; private</FONT></FONT></FONT></B><FONT face="Courier New, courier, monaco, monospace, sans-serif"><FONT size=2> Status </FONT><FONT color=#0000c0 size=2><FONT color=#0000c0 size=2>status</FONT></FONT></FONT><FONT size=2><FONT face="Courier New, courier, monaco, monospace, sans-serif">; // and corresponding get/set</FONT> 
<P align=left><FONT face="Courier New, courier, monaco, monospace, sans-serif"></FONT></P></FONT><FONT size=2>
<P align=left><FONT face="Courier New, courier, monaco, monospace, sans-serif">}</FONT></P><B><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2>
<P align=left><FONT face="Courier New, courier, monaco, monospace, sans-serif">public</FONT></P></FONT></FONT></B></FONT><FONT face="Courier New, courier, monaco, monospace, sans-serif"><FONT size=2></FONT><B><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2>class</FONT></FONT></B></FONT><FONT face="Courier New, courier, monaco, monospace, sans-serif"><FONT size=2> SubClass </FONT><B><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2>extends</FONT></FONT></B></FONT><FONT size=2><FONT face="Courier New, courier, monaco, monospace, sans-serif"> MotherClass {</FONT> 
<P align=left></P></FONT><B><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2><FONT face="Courier New, courier, monaco, monospace, sans-serif">&nbsp;&nbsp;&nbsp; private</FONT></FONT></FONT></B><FONT face="Courier New, courier, monaco, monospace, sans-serif"><FONT size=2> String </FONT><FONT color=#0000c0 size=2><FONT color=#0000c0 size=2>message</FONT></FONT></FONT><FONT size=2><FONT face="Courier New, courier, monaco, monospace, sans-serif">; // and corresponding get/set</FONT> 
<P align=left><FONT face="Courier New, courier, monaco, monospace, sans-serif">}</FONT></P>
<P align=left><FONT face="Courier New"></FONT>&nbsp;</P></FONT></DIV></DIV><BR>_______________________________________________<BR>rules-users mailing list<BR><A href="mailto:rules-users@lists.jboss.org" target=_blank>rules-users@lists.jboss.org</A><BR><A href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank>https://lists.jboss.org/mailman/listinfo/rules-users</A><BR><BR></BLOCKQUOTE></DIV><BR><BR>_______________________________________________<BR>rules-users mailing list<BR>rules-users@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-users<BR></div></body></html>