Bug 1264321 - Guided rule editor: replace or replaceAll condition parameters on a String missing on reopening a guided rule
Guided rule editor: replace or replaceAll condition parameters on a String mi...
Status: VERIFIED
Product: JBoss BRMS Platform 6
Classification: JBoss
Component: Business Central (Show other bugs)
6.1.0
Unspecified Unspecified
high Severity unspecified
: ER4
: 6.2.0
Assigned To: manstis
Jiri Locker
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-18 04:14 EDT by Suresh Pritmani
Modified: 2015-11-19 23:57 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Document contains screenshots and steps to reproduce the issue. (209.42 KB, application/vnd.oasis.opendocument.text)
2015-09-18 04:14 EDT, Suresh Pritmani
no flags Details
Project repository which contains guided rule - "ReplaceIssue" - as a reproducer. (291.35 KB, application/zip)
2015-09-18 04:19 EDT, Suresh Pritmani
no flags Details
Component/Fact jar which is being used with the attached reproducer project. (3.97 KB, application/zip)
2015-09-18 04:19 EDT, Suresh Pritmani
no flags Details

  None (edit)
Description Suresh Pritmani 2015-09-18 04:14:17 EDT
Created attachment 1074712 [details]
Document contains screenshots and steps to reproduce the issue.

Description of problem:
In Guided Rule Editor, customer is trying to add expression for variables (String type) using replace or replaceAll condition parameters. 

After saving, closing and reopening same rule in guided rule editor, string expressions are missing.

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

How reproducible:

Steps to Reproduce:
1. Create a Project using Business Central and import the fact which contains string variable.

2. Create one Guided Rule by using that imported Fact

3. Use the fact and String variable of that fact. (as per attached project, used TestVO)

4. Apply replace condition on the string variable with some expression and rule looks like below:

~~~
import com.org.redhat.TestVO;

rule "Replace_condition_Issue"
     dialect "mvel"
     when
          TestVO( $cts : test.replace("+",""))
     then
end
~~~

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

6. Expressions from replace condition has been removed.

Actual results:

There should be no change in the rule while reopening it. It should be as it is with whatever parameters have been configured in replace condition.

Expected results:

After reopening the rule in guided rule editor, expressions from replace condition has been removed.

Additional info:

I have attached Document which contains screen shots and all steps to reproduce the issue.
Comment 1 Suresh Pritmani 2015-09-18 04:19:03 EDT
Created attachment 1074713 [details]
Project repository which contains guided rule - "ReplaceIssue" - as a reproducer.
Comment 2 Suresh Pritmani 2015-09-18 04:19:59 EDT
Created attachment 1074715 [details]
Component/Fact jar which is being used with the attached reproducer project.

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