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

Bug 1249077

Summary: Guided Editor rewrites method call in RHS to a setter call
Product: [Retired] JBoss BRMS Platform 6 Reporter: Anton Giertli <agiertli>
Component: Business CentralAssignee: manstis
Status: CLOSED EOL QA Contact: Jiri Locker <jlocker>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.1.0CC: alazarot, jlocker, kverlaen
Target Milestone: ER3   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1249481 (view as bug list) Environment:
Last Closed: 2020-03-27 19:05:55 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:
Bug Depends On:    
Bug Blocks: 1249481    
Attachments:
Description Flags
[0] Customer's description none

Description Anton Giertli 2015-07-31 13:02:00 UTC
Description of problem:

When using Guided Decision Table Editor in business-central, it is possible to select "Call Method" feature in the RHS, which will allow you to select a method call on the fact variable. If you select a method which accepts multiple parameters, after re-opening this method call, the guided editor will split this single method call to multiple method call, and mark every one of them as a setter.

i.e. 

fact.add("v","w")

-> will become this:

fact.setAdd("v");
fact.setAdd("w");



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

 BRMS, BPMS 6.1
How reproducible:

always
Steps to Reproduce:
1. Create fact model and add a method which accepts multiple parameters and it is not a setter (i.e. some add method)
2. Create guided decision table, and configure RHS with a method call on a fact - select a method with multiple parameters which you have created in a first step.
3. After re-opening the configuration created in step 2, the method call will be deformed as described in the initial description.

Actual results:
When configuring method call which accepts multiple parameters, it will be rewritten by the Guided Editor to a multiple calls of setter method

i.e. 

fact.add("v","w")

-> will become this:

fact.setAdd("v");
fact.setAdd("w");

Expected results:

It is possible to add fragment in RHS via "Call Method" feature, which will allow you to configure method call which accepts multiple parameter.

Additional info:

Comment 1 Anton Giertli 2015-07-31 13:04:20 UTC
Created attachment 1058054 [details]
[0] Customer's description

Customer provided description which explains the necessary steps in details.

Comment 4 Jiri Locker 2015-10-26 11:16:07 UTC
Verified in ER4.