Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1264339

Summary: Guided rule editor: List contains condition missing bound value on re-opening guided rule
Product: [Retired] JBoss BRMS Platform 6 Reporter: Suresh Pritmani <spritman>
Component: Business CentralAssignee: manstis
Status: CLOSED EOL QA Contact: Jiri Locker <jlocker>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.1.0CC: kverlaen
Target Milestone: ER5   
Target Release: 6.2.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:07:36 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:
Attachments:
Description Flags
Document contains screenshots and steps to reproduce the issue.
none
Components/Facts jar which is being used with the attached reproducer project.
none
Project repository which contains guided rule - "ListOfValuesIssue.rdrl" - as a reproducer. none

Description Suresh Pritmani 2015-09-18 08:54:04 UTC
Created attachment 1074741 [details]
Document contains screenshots and steps to reproduce the issue.

Description of problem:
In Guided Rule Editor, customer is trying to add expression for List variables and trying to map it with Bound variable of another condition. 

After saving, closing and reopening same rule in guided rule editor, bind variable with List condition is removed.

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

How reproducible:

Steps to Reproduce:
1. Create a Project and by import following facts.
- MyData
- MyTransactionVO
- DataList

2. Create one Guided rule.

3. Use fact “MyTransactionVO” which contains MyData .

4. Use “DataList” fact and map dataList with bounded variable and rule looks like below:

~~~
import org.redhat.MyData;
import org.redhat.DataList;
import org.redhat.MyTransactionVO;

rule "List_Of_Values_Issue"
     dialect "mvel"
     when
          MyTransactionVO( $myData : myData)
          DataList( myDataList contains $myData)
     then
end
~~~

5. Save the guided rule, close it and try to reopen same rule.

6. Once you re-open it. At GUI level, bounded variable will be removed but no change at source code level.

Actual results:

There should be no change in the rule at GUI level even if it has been saved, closed and reopen number of times.

Expected results:

After reopening the rule in guided rule editor bounded variable has been removed but no change at source code level.

Additional info:

I have attached Document which contains screen shots and all steps to reproduce the issue.

Comment 1 Suresh Pritmani 2015-09-18 08:55:01 UTC
Created attachment 1074742 [details]
Components/Facts jar which is being used with the attached reproducer project.

Comment 2 Suresh Pritmani 2015-09-18 08:57:20 UTC
Created attachment 1074743 [details]
Project repository which contains guided rule - "ListOfValuesIssue.rdrl" - as a reproducer.

Comment 4 manstis 2015-09-18 11:12:09 UTC
I tried to replicate this with 6.3.0.Final (Community), i.e. 6.2.0 (Product) and it works as expected. The rule re-opens identically to when it was authored and saved.

Comment 5 manstis 2015-09-18 11:12:33 UTC
Set to MODIFIED to allow testing and verification by QE.

Comment 7 Jiri Locker 2015-10-23 14:48:13 UTC
Reproduced with ER4.

Comment 11 Jiri Locker 2015-11-05 16:43:32 UTC
Fixed in ER5.