Bug 1042511

Summary: Guided Editor - adding method calls to consequence of a rule does not persist change
Product: [Retired] JBoss BRMS Platform 6 Reporter: Tihomir Surdilovic <tsurdilo>
Component: Business CentralAssignee: Toni Rikkola <trikkola>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas David <tdavid>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: etirelli, jpaulraj, manstis, rrajasek, tdavid, trikkola
Target Milestone: CR1   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:16:00 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:

Description Tihomir Surdilovic 2013-12-12 23:11:49 UTC
Guided Rule editor - after adding a method (with parameters with literal and bind values) are not persisted (dissapear) after saving the asset.

Comment 2 Lukáš Petrovický 2013-12-13 08:07:49 UTC
This is a BRMS bug, moving.

Comment 4 Toni Rikkola 2013-12-13 14:06:08 UTC
Literal should be fixed by this.
https://bugzilla.redhat.com/show_bug.cgi?id=1039639

Comment 5 Edson Tirelli 2013-12-18 20:13:22 UTC
Toni, if this is fixed, I am setting the ticket to MODIFIED for QA to pick it up.

Comment 6 Edson Tirelli 2013-12-19 01:01:12 UTC
Toni, I just checked and the problem still exists. See my e-mail, I believe the problem is that the widget is populating the method name attribute with the wrong string, i.e., with the paramenters, instead of just the method name:

method( X, Y )

instead of:

method

This code here looks suspicious:

https://github.com/droolsjbpm/drools-wb/blob/master/drools-wb-screens/drools-wb-guided-rule-editor/drools-wb-guided-rule-editor-client/src/main/java/org/drools/workbench/screens/guided/rule/client/widget/ActionCallMethodWidget.java#L239

Comment 7 Toni Rikkola 2013-12-19 08:29:39 UTC
Looks like the commit only fixes the issue when we are loading the rule. If the method call is added in the editor it breaks.

Comment 10 Tomas David 2014-01-27 13:35:30 UTC
Verified on BRMS 6.0.0.CR2.