Bug 1129725 - Dependent enumerations not working for RHS of a guided rule and g.r. template
Summary: Dependent enumerations not working for RHS of a guided rule and g.r. template
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER3
: 6.1.0
Assignee: manstis
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-13 14:31 UTC by Zuzana Krejčová
Modified: 2016-08-01 01:16 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)

Description Zuzana Krejčová 2014-08-13 14:31:47 UTC
Description of problem:
Enumeration contains the following:
'EnumFact.fieldString1' : ['nilValue', 'firstValue', 'secondValue']
'EnumFact.fieldString2' : ['thirdValue', 'fourthValue']
'EnumFact.fieldString2[fieldString1=firstValue]' : ['seventhValue', 'eighthValue']
'EnumFact.fieldString2[fieldString1=nilValue]' : ['fifthValue', 'sixthValue']

In the RHS section of a guided rule, there is:
var1.setFieldString1( "firstValue" );
var1.setFieldString2( "eighthValue" );

(var1 is an EnumFact instance)

If I change 'firstValue' to 'secondValue' in 'var1.setFieldString1(..)', select box for the second action ('var1.setFieldString2(..)') should offer options 'thirdValue', 'fourthValue', but it still offers options 'seventhValue', 'eighthValue'.

Same thing happens for guided rule templates.


Steps to Reproduce:
1. Create an enumeration as described above.
2. Create a guided rule or guided rule template, add EnumFact to LHS and bind it to a variable.
3. Add action to modify it's fields - fieldString1 and choose literal value - 'firstValue'.
4. Add action to modify fieldString2, choose literal value 'eighthValue'.
5. Change 'firstValue' to 'secondValue'.
6. Try to change 'eighthValue' to 'fourthValue'.


Actual results:
Not possible. Select box for fieldString2 offers 'seventhValue', 'eighthValue'.


Expected results:
'fourthValue' is available and can be selected.


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