Bug 1129725

Summary: Dependent enumerations not working for RHS of a guided rule and g.r. template
Product: [Retired] JBoss BRMS Platform 6 Reporter: Zuzana Krejčová <zkrejcov>
Component: Business CentralAssignee: manstis
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1.0CC: kverlaen, lpetrovi
Target Milestone: ER3   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:44:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.