Bug 1048962 - GRE: input for field used with dependent enumeration not updated
Summary: GRE: input for field used with dependent enumeration not updated
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER2
: 6.0.1
Assignee: manstis
QA Contact: Pavel Kralik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-06 16:02 UTC by Zuzana Krejčová
Modified: 2016-08-01 01:08 UTC (History)
5 users (show)

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


Attachments (Terms of Use)
screenshot - disabled drop down instead of input field (24.99 KB, image/png)
2014-01-06 16:02 UTC, Zuzana Krejčová
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1076375 0 high CLOSED GDT: Editor for operation 'is contained in the (comma separated) list' is not displayed 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1132484 0 medium CLOSED Test Scenario: input for field used with dependent enumeration not updated 2021-02-22 00:41:40 UTC

Internal Links: 1076375 1132484

Description Zuzana Krejčová 2014-01-06 16:02:41 UTC
Created attachment 846155 [details]
screenshot - disabled drop down instead of input field

Description of problem:

Enumeration is as follows:
  'A.a' : ['a','b','c']
  'A.b[a=b]' : ['b1','b2']
In the Guided rule editor, I first add the 'There is an A with:' condition, then add the 'a' field constraint with 'b' as the value, after that I add the 'b' field constraint and choose from the enum drop down.
If I change the 'a' constraint value, the drop down for 'b' constraint gets disabled instead of turning into an input field. It stays that way even if I change the first constraint value back to 'b'.
To get the correct input element (after changing first constraint value), you have to remove the disabled drop down and re-add it (Literal value).

When you start with value 'a' or 'c' for the a field constraint, you won't get the drop down box for field b constraint if you change to value 'b' either. The simple input field stays there.


Version-Release number of selected component (if applicable):
BPMS 6.0 ER7


Steps to Reproduce:
1. Create a POJO A with String fields a and b and the above mentioned enumeration.
2. Create a new guided rule, add a new condition - choose fact A.
3. Click the added line, choose restriction on field a, choose 'equal to' operator an Literal value.
4. Choose 'b' as the value.
5. Click the first line again, add restriction on field b, choose the same operator and Literal value again.
6. Choose a value for field b.
7. Change value for field a to 'c'.


Actual results:
Drop down box for field b is disabled, no value visible. Source shows the previously selected dependent value though.


Expected results:
Drop down box for field b changed into simple input field, user can type in the preferred value.




(I think there was a BZ for the same issue for 5.3 but couldn't find it. If anyone stumbles across that, please add a link.)

Comment 3 manstis 2014-02-19 13:32:04 UTC
Guided Rule, Guided Decision Table and Guided Rule Template Editors fixed.

Comment 4 Pavel Kralik 2014-03-20 14:17:54 UTC
Restrictions on fields with dependent enumeration works as described in Expected results.

Verified for brms-6.0.1-ER2 deployable for eap6.


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