Bug 1249077 - Guided Editor rewrites method call in RHS to a setter call
Summary: Guided Editor rewrites method call in RHS to a setter call
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ER3
: 6.2.0
Assignee: manstis
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On:
Blocks: 1249481
TreeView+ depends on / blocked
 
Reported: 2015-07-31 13:02 UTC by Anton Giertli
Modified: 2020-03-27 19:05 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1249481 (view as bug list)
Environment:
Last Closed: 2020-03-27 19:05:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
[0] Customer's description (146.92 KB, application/pdf)
2015-07-31 13:04 UTC, Anton Giertli
no flags Details

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.


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