Bug 1047879 - GRE regression in handling nested enum values
Summary: GRE regression in handling nested enum values
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: CR1
: 6.0.0
Assignee: manstis
QA Contact: Jiri Locker
URL:
Whiteboard:
: 1053413 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-02 12:51 UTC by Jiri Locker
Modified: 2018-12-04 16:48 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:17:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 724629 0 medium CLOSED Enum support in Guvnor is not functional 2025-02-10 03:13:55 UTC
Red Hat Bugzilla 986000 0 high CLOSED DRL-to-RuleModel marshalling improvements 2021-02-22 00:41:40 UTC

Internal Links: 724629 986000

Description Jiri Locker 2014-01-02 12:51:38 UTC
Description of problem:
Bug 724629 was fixed for 5.3.0 and it concludes that enum values like Person$Sex.FEMALE should be presented as Sex.FEMALE in Guided Rule Editor. Currently in 6.0.x it is displayed as Person$Sex.FEMALE and the same value appears in the generated DRL source. When a rule using such value is saved and reopened the select box listing the enum values is reset and contains no items (only the "Choose ..." hint).

Version-Release number of selected component (if applicable):
ER6

How reproducible:
-

Steps to Reproduce:
1. prepare a data model described in bug 724629
2. add Person fact with sex field and set it to Person$Sex.FEMALE
3. save the rule, close it and reopen

Actual results:
The select box for Person.sex field is reset. DRL source contains Person$Sex.FEMALE.

Expected results:
* The select box in GRE should contain values without the enclosing class, e.g. Sex.FEMALE.
* The same format should appear in the DRL source.
* GRE should handle nested enum values correctly when reopening the rule

Additional info:

Comment 1 manstis 2014-01-02 16:43:14 UTC
This BZ also reveals that closing and re-opening a rule containing a Java enumberation does not work correctly. I would therefore recommend that this BZ becomes a blocker.

Comment 3 manstis 2014-01-02 23:08:32 UTC
This BZ also reveals that nested inner classes do not work correctly in 6.0.x either. I am rolling the fix for this into this BZ. I would therefore recommend that this BZ becomes a blocker. See https://issues.jboss.org/browse/GUVNOR-1873 (fixed in 5.5 but not in 6.0.x).

Comment 8 Toni Rikkola 2014-01-16 13:48:11 UTC
*** Bug 1053413 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.