Rikkola.... more troubles with the &quot;improved&quot; enum editor..... :(<br><br>Can you please take a look at (we&#39;ll need to ensure it&#39;s good for 6.0.... and possibly 5.6).<br><br>Thanks,<br><br>Mike<br><br><div class="gmail_quote">
On 26 March 2013 16:34, Stephen Masters <span dir="ltr">&lt;<a href="mailto:stephen.masters@me.com" target="_blank">stephen.masters@me.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div>There seem to be a few bugs with Guvnor enumerations.</div><div><br></div><div>The editor can&#39;t deal with more than 15 enumerations in a single file. Any more get hidden off-screen so that they can&#39;t be edited. The issue is in both Chrome and Firefox.</div>
<div><br></div><div>See these two enumerations?</div><div><br></div><div><font face="Lucida Console">&#39;MyFact.currencies&#39;: (new com.myapp.guvnor.enums.CurrencyEnum()).isoCodes()</font></div><div><span style="font-family:&#39;Lucida Console&#39;">&#39;MyFact.currencies&#39; : (new com.myapp.guvnor.enums.CurrencyEnum()).isoCodes()</span></div>
<div><br></div><div>The second isn&#39;t parsed correctly by the editor. Unfortunately, it turns out that if there&#39;s a space before the &quot;:&quot; (as per examples in the user manual), then when loaded into the editor in Guvnor, it doesn&#39;t recognise the &quot;field&quot;. That text box ends up empty.</div>
<div><br></div><div>btw … Removing the space before colons in my enumeration definitions may have improved things so that I do at last see the correct field names in the &quot;Field&quot; column. However, the original issue still remains re. missing property accessors.</div>
<div><br></div><div>I don&#39;t suppose that anybody has managed to get data enumerations working in Guvnor 5.5.0.Final and could provide an example that works?</div><div><br></div><div>Cheers,</div><div><br></div><div>Steve</div>
<div><br></div><div><br></div><br><div><div><div class="h5"><div>On 26 Mar 2013, at 16:07, Stephen Masters &lt;<a href="mailto:stephen.masters@me.com" target="_blank">stephen.masters@me.com</a>&gt; wrote:</div><br></div></div>
<blockquote type="cite"><div><div class="h5"><div style="word-wrap:break-word">Hi folks,<div><br></div><div>I don&#39;t suppose anything notable changed between 5.3 and 5.5 in the way Guvnor loads data enumerations?</div>
<div><br></div><div>I have a number of enumerations similar to the following:</div><div><br></div><div>&#39;MyFact.currencies&#39; : (new com.myapp.guvnor.enums.CurrencyEnum()).isoCodes() </div><div><br></div><div>But I see the exception in Guvnor:</div>
<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>Unable to load enumeration data.</div><div>[Error: unable to invoke method: isoCodes] [Near :{... &#39;MyFact.&#39;: ….}] ^ [Line: 1, Column: 1]</div>
<div>Error type: org.mvel2.PropertyAccessException</div></blockquote><div><br></div><div>The jar is in the lib directory, there is a method called &quot;isoCodes()&quot;, and when I run the main class inside it then the various enumerations are returned. And yes, it did (does) work absolutely fine in 5.3 with this same configuration.</div>
<div><br></div><div>Steve</div></div></div></div><div class="im">_______________________________________________<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></div></blockquote></div><br></div><br>_______________________________________________<br>

rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">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></blockquote></div><br>