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

Bug 1152826

Summary: Process Designer's Data Assignments editor overwrite existing data assignment when we try to add new data assignment.
Product: [Retired] JBoss BPMS Platform 6 Reporter: Abhijit humbe <abhumbe>
Component: jBPM DesignerAssignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED EOL QA Contact: Kirill Gaevskii <kgaevski>
Severity: high Docs Contact: Dawn Eisner <deisner>
Priority: urgent    
Version: 6.0.3CC: jlocker, kverlaen, mbaluch, smala
Target Milestone: ER4   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:01:50 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:
Attachments:
Description Flags
Screenshot-1
none
Screenshot-2
none
Screenshot-3
none
Screenshot-4 none

Description Abhijit humbe 2014-10-15 03:21:03 UTC
Created attachment 947077 [details]
Screenshot-1

Description of problem:

It has been found that with BPMS 6.0.3 the Process Designer's "Editor for Data Assignments" pop-up overwrite existing data assignment when we try to add new data assignment.This issue is reproduced only when we have Task and Process Variable of same name.


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


How reproducible:


Steps to Reproduce:
1. Create a process definition in Process Designer which has {Start -> User Task -> End} , which has a process variable named "variable_One" & variable_two.

2. Create the following data assignments for the task variable and the process variables like this.

(DataOutputSet) variable_One:String
(DataOutputSet) variable_two:String
(DataOutput Assignments) variable_One->variable_One

and click on "Ok" button.

3. Now try to add data mapping for "variable_two", in pop up window we dont see data mapping created in step-2.Add below data mapping and close pop up window.

(DataOutput Assignments) variable_One->variable_One

4. New data assignment it overwrite previous data assignment

Actual results:
Overwrite existing data assignment when we try to add new data assignment.

Expected results:
We should able to add multiple data assignment.

Additional info:
This issue is reproduced only when we have Task and Process Variable of same name.

Comment 1 Abhijit humbe 2014-10-15 03:21:39 UTC
Created attachment 947078 [details]
Screenshot-2

Comment 2 Abhijit humbe 2014-10-15 03:22:10 UTC
Created attachment 947079 [details]
Screenshot-3

Comment 3 Abhijit humbe 2014-10-15 03:22:51 UTC
Created attachment 947081 [details]
Screenshot-4

Comment 5 Kris Verlaenen 2014-10-15 11:39:30 UTC
This is most likely fixed by https://bugzilla.redhat.com/show_bug.cgi?id=1149123, which was just fixed on master and 6.0.x (6.0.3 roll up patch 1)

Comment 6 Jiri Locker 2014-10-29 14:10:16 UTC
Not fixed in the 6.0.3 rollup #1.

I used var1:String,var2:String process variables and the same for the task DataOutputSet. DataOutput assignments var1->var2 and var2->var2 were always dropped whereas var2->var1 and var1->var1 persisted.

Comment 7 Jiri Locker 2014-11-11 13:27:02 UTC
Related Data Assignments bugs.

Comment 8 Tihomir Surdilovic 2014-11-27 20:23:19 UTC
with the data assignments updates on master done this is no longer a problem. the mapping can be done without issues

Comment 9 Sona Mala 2014-12-15 13:55:05 UTC
Tiho,
there is a problem with typing both assignment:
   [DataOutput] variable_One -> variable_One
   [DataOutput] variable_Two -> variable_Two
   [DataOutput] variable_Three -> variable_Three

after reopening there is just:
   [DataOutput] variable_One -> variable_One

My opinion is that after fix of this bug I should see again:
   [DataOutput] variable_One -> variable_One
   [DataOutput] variable_Two -> variable_Two
   [DataOutput] variable_Three -> variable_Three


Note: Branch 6.2.x does not contain any commit which name contains "BZ1152826" or "BZ1149123". This branch does not contain the commit which solves the problem with the patch (November 2014).

Comment 10 Tihomir Surdilovic 2014-12-15 17:53:00 UTC
we are moving a number of fixed from master to 6.2.x currently. if its possible to test against master please do so.

Comment 11 Tihomir Surdilovic 2014-12-15 18:25:17 UTC
fixed in both master and 6.2.x branches now

Comment 12 Tomas Livora 2015-01-23 13:51:10 UTC
Verified on BPMS 6.1.0 ER4