Bug 1249077 - Guided Editor rewrites method call in RHS to a setter call
Guided Editor rewrites method call in RHS to a setter call
Status: VERIFIED
Product: JBoss BRMS Platform 6
Classification: JBoss
Component: Business Central (Show other bugs)
6.1.0
Unspecified Unspecified
high Severity unspecified
: ER3
: 6.2.0
Assigned To: manstis
Jiri Locker
:
Depends On:
Blocks: 1249481
  Show dependency treegraph
 
Reported: 2015-07-31 09:02 EDT by Anton Giertli
Modified: 2015-10-26 07:16 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1249481 (view as bug list)
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)
[0] Customer's description (146.92 KB, application/pdf)
2015-07-31 09:04 EDT, Anton Giertli
no flags Details

  None (edit)
Description Anton Giertli 2015-07-31 09:02:00 EDT
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 09:04:20 EDT
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 07:16:07 EDT
Verified in ER4.

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