Bug 724242 (BRMS-186) - Data enum in a dropdown list from external data does not work
Summary: Data enum in a dropdown list from external data does not work
Keywords:
Status: CLOSED NEXTRELEASE
Alias: BRMS-186
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: unspecified
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: 5.0.1
Assignee: Toni Rikkola
QA Contact:
URL: http://jira.jboss.org/jira/browse/BRM...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-07 20:21 UTC by nwallace
Modified: 2009-10-01 06:27 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-08-27 13:59:53 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker BRMS-186 0 Major Closed Data enum in a dropdown list from external data does not work 2012-08-28 10:52:20 UTC

Description nwallace 2009-07-07 20:21:36 UTC
Date of First Response: 2009-08-27 09:59:53
securitylevel_name: Public

When you create an enumerate data for a field of a class using external data like
'demodrools.ImpotPersonne.type' : (new demodrools.PipoClass()).loadData()

when creating a rule, no enum type can be chose

Comment 1 nwallace 2009-07-07 20:26:30 UTC
Link: Added: This issue is related to GUVNOR-237


Comment 2 Jaroslaw Kijanowski 2009-08-27 13:59:53 UTC
Verified in 5.0.1 CR1

Comment 3 David Le Sage 2009-09-10 06:02:46 UTC
For documenting this in the Release Notes, can you please confirm the following and fill in the missing information. Dot point explanations are fine:

The CAUSE (what was actually broken)
 *  

CONSEQUENCES of the bug (how it impacts users.)
 * Imported data enums could not be selected from drop-down lists (WHICH ONES? WHERE?)  whilst new rules are in the process of being created (HOW? SIMULTANEOUSLY? WHILST BEING SAVED?)

The FIX (what was changed to eliminate this bug) and 
 * 

RESULTS of the fix (what now happens for users.)
 * 

Comment 4 David Le Sage 2009-09-23 05:50:28 UTC
We are still awaiting the outstanding information for the Release Notes on this one. Please provide it as soon as possible. Thanks.

Comment 5 Toni Rikkola 2009-09-23 07:10:45 UTC
The CAUSE (what was actually broken)
 * Nothing. This was more like a new feature. The enums were not found because they were not in the wars classpath, and this feature wanted to add them to the packages classpath so you could upload the helper classes as a new model jar or as a part of a model jar. 

CONSEQUENCES of the bug (how it impacts users.)
 * Imported data enums could not be selected from drop-down lists in guided rule editor, if the helper classes were uploaded as a model ( Not a bug ).

The FIX (what was changed to eliminate this bug)
 * First we loaded the model jars for the completion suggestion engine so it can get the enums. This broke the engine, the rule package builds and test scenarios too often. Also the information about the enums did not belong into the rule packages, just for the editor. 
 * In the end nothing was changed, this was not a real bug and the codes belonging to this Jira were not working well enough.

RESULTS of the fix (what now happens for users.)
 * Same thing as before the changes. The helper classes need to be in the wars classpath and having them uploaded as a model does nothing.


Comment 6 Toni Rikkola 2009-09-25 22:26:37 UTC
More information since I think that there is still a problem related to this in the product. 

The patch in GUVNOR-237 had some issues and because of them the suggestion completion engine was not able to load every time. More information and the fix for this is in GUVNOR-282.


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