Bug 795815 - Missing support for enumerations in Decision Table Wizard
Summary: Missing support for enumerations in Decision Table Wizard
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRM (Guvnor)
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: future
Assignee: manstis
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-21 15:34 UTC by Zuzana Krejčová
Modified: 2025-02-10 03:19 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:19:03 UTC
Type: Enhancement
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 995085 0 unspecified CLOSED Guided Decision Table, enumerations: only the last option is visible 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker GUVNOR-1709 0 Major Resolved Decision table: Despite choosing operator "is contained in the a (comma separated) list" it's impossible to imput a comm... 2014-05-26 01:34:58 UTC

Internal Links: 995085

Description Zuzana Krejčová 2012-02-21 15:34:29 UTC
Description of problem:
The wizard allows you to add whatever you like into input for 'value list' and 'default value', even though the Fact's field is an enumeration. This way you can overwrite the values of the enumeration and cause yourself some interesting problems.


Version-Release number of selected component (if applicable):
BRMS 5.3.0 ER4


Steps to Reproduce:
Using 
  model with a fact Person with fields age, name, sex
  enumeration 'Person.sex':['f=female', 'm=male']

1. Create a new Guided Decision Table via the wizard.
2. Add a Fact Pattern - Person, and Constraint - sex. (Fill in bindings, operator.)
3. Add to the Constraint:
  A) value "a,b,c" into the value list,
  B) value "aaa" as a default value,
  C) value "male" as a default value.
4. Finish the wizard and add a row.

  
Actual results:
A) Rows expand to show rules with values a, b and c as sex. The new row has options a, b and c. Even though the enumeration defines f, m (female, male).
B+C) The row is empty, no default value shown, even though there is one defined and visible in both the source and the column configuration.


Expected results:
This should not be even possible:
A) The input field for value list should be disabled or not shown at all.
B+C) There should be a list to choose from. It would contain the labels female, male and resolve that to f, m in the source

Comment 1 manstis 2012-02-28 16:51:10 UTC
It is not specific to the Wizard, but has been a long standing limitation for "Default Value" and "Option value list" in the web-guided Decision Table as a whole. I have linked a JIRA that is related to this BZ.

Comment 2 JBoss JIRA Server 2012-02-29 09:37:24 UTC
Zuzka Krejčová <zkrejcov> made a comment on jira GUVNOR-1709

The "(optional) value list" field is also a bit useless with this operator.

Comment 3 JBoss JIRA Server 2012-02-29 09:40:17 UTC
Michael Anstis <michael.anstis> made a comment on jira GUVNOR-1709

I assume you mean the operator "this" as opposed to forgetting to say what "this operator" is? ;)

Comment 4 JBoss JIRA Server 2012-02-29 10:26:42 UTC
Zuzka Krejčová <zkrejcov> made a comment on jira GUVNOR-1709

No, sorry for the confusion, I meant the operator "is contained in the a (comma separated) list" as specified in the title of this JIRA issue.

Comment 6 Lukáš Petrovický 2012-03-28 06:35:54 UTC
Thanks, Michael! Making sure the bug doesn't show up in a list of fixes for 5.3.

Comment 7 JBoss JIRA Server 2012-04-02 14:16:47 UTC
Michael Anstis <michael.anstis> updated the status of jira GUVNOR-1709 to Resolved

Comment 8 Ryan Zhang 2012-04-23 07:36:20 UTC
Update status to ON_QA. Please verify them against ER6.

Comment 9 Zuzana Krejčová 2012-04-23 09:18:30 UTC
(In reply to comment #8)
> Update status to ON_QA. Please verify them against ER6.

Do we really have it in ER6? I got the impression it was decided not to include this fix in 5.3. Has that changed?

Comment 10 manstis 2012-04-23 09:30:18 UTC
You are correct. It is not in 5.3.

Comment 11 manstis 2012-05-02 12:29:35 UTC
This has been fixed in community release 5.4.

Comment 12 Ryan Zhang 2012-05-11 10:54:37 UTC
Yep, it's my mistake by batch status updates. Sorry!

Comment 13 lcarlon 2012-06-08 03:15:08 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
The Guided Decision Table wizard allows users to over write enumerations in the value list, invalidating the values.

Comment 17 Red Hat Bugzilla 2025-02-10 03:19:03 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


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