I have raised 4 Jira issues to cover the different specific bugs I have found.
GUVNOR-1997 - Enumerations editor fails to parse enums if there is a space prior to
":"
GUVNOR-1998 - Enumerations editor can't handle more than 15 enums in one file
GUVNOR-1999 - Enumerations editor attempts to display comments as enumerations
GUVNOR-2000 - Guvnor no longer supports external source data enumerations
The first three are pretty clear in what's wrong and have workarounds, but GUVNOR-2000
is the big one for me, which could prevent me from migrating from 5.3. I don't suppose
anybody has actually been able to use externally sourced data enumerations in 5.5? Any
workarounds?
Steve
On 26 Mar 2013, at 17:31, Stephen Masters <stephen.masters(a)me.com> wrote:
I must admit that although it was basic, the previous simple text
editor was free of surprises at least. ;)
For now I'm just compiling the issues I come across. My plan is to raise them as a
batch in Jira once I get a bit further in understanding what's going wrong. Probably
tomorrow some time.
Steve
On 26 Mar 2013, at 17:02, Michael Anstis <michael.anstis(a)gmail.com> wrote:
> Hi Stephen,
>
> This could be a MVEL problem (I've asked Mario Fusco to comment).
>
> Guvnor did receive a new erm, "improved" enum editor for 5.5 but I
don't think the parsing of the enum definition (which is in reality a MVEL expression)
happens in Guvnor (hopefully Rikkola can comment on that).
>
> Can you raise JIRAs for these issues please? We'll need to ensure they're
fixed for 6.0 (and 5.6 when it appears - no, I don't know the timing.. before you
ask!!)
>
> With kind regards,
>
> Mike
>
> On 26 March 2013 16:56, Michael Anstis <michael.anstis(a)gmail.com> wrote:
> Rikkola.... more troubles with the "improved" enum editor..... :(
>
> Can you please take a look at (we'll need to ensure it's good for 6.0.... and
possibly 5.6).
>
> Thanks,
>
> Mike
>
>
> On 26 March 2013 16:34, Stephen Masters <stephen.masters(a)me.com> wrote:
> There seem to be a few bugs with Guvnor enumerations.
>
> The editor can't deal with more than 15 enumerations in a single file. Any more
get hidden off-screen so that they can't be edited. The issue is in both Chrome and
Firefox.
>
> See these two enumerations?
>
> 'MyFact.currencies': (new com.myapp.guvnor.enums.CurrencyEnum()).isoCodes()
> 'MyFact.currencies' : (new com.myapp.guvnor.enums.CurrencyEnum()).isoCodes()
>
> The second isn't parsed correctly by the editor. Unfortunately, it turns out that
if there's a space before the ":" (as per examples in the user manual), then
when loaded into the editor in Guvnor, it doesn't recognise the "field".
That text box ends up empty.
>
> 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 "Field"
column. However, the original issue still remains re. missing property accessors.
>
> I don't suppose that anybody has managed to get data enumerations working in
Guvnor 5.5.0.Final and could provide an example that works?
>
> Cheers,
>
> Steve
>
>
>
> On 26 Mar 2013, at 16:07, Stephen Masters <stephen.masters(a)me.com> wrote:
>
>> Hi folks,
>>
>> I don't suppose anything notable changed between 5.3 and 5.5 in the way
Guvnor loads data enumerations?
>>
>> I have a number of enumerations similar to the following:
>>
>> 'MyFact.currencies' : (new
com.myapp.guvnor.enums.CurrencyEnum()).isoCodes()
>>
>> But I see the exception in Guvnor:
>>
>> Unable to load enumeration data.
>> [Error: unable to invoke method: isoCodes] [Near :{... 'MyFact.': ….}] ^
[Line: 1, Column: 1]
>> Error type: org.mvel2.PropertyAccessException
>>
>> The jar is in the lib directory, there is a method called "isoCodes()",
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.
>>
>> Steve
>> _______________________________________________
>> rules-users mailing list
>> rules-users(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users