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

Bug 1048251

Summary: Unable to save process with compensation activity
Product: [Retired] JBoss BPMS Platform 6 Reporter: Sona Mala <smala>
Component: jBPM DesignerAssignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED CURRENTRELEASE QA Contact: Sona Mala <smala>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: etirelli, kverlaen, lpetrovi, rrajasek, tsurdilo
Target Milestone: CR2   
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:06:17 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
Video file - step to reproduce
none
Step 5 - screen shot for ER7
none
Step 6 (save) - screen shot for ER7
none
Step 5 (process source code) - screen shot for ER7
none
trying to reproduce none

Description Sona Mala 2014-01-03 13:51:23 UTC
Created attachment 844957 [details]
Video file - step to reproduce

Description of problem:
See attached video file.

Problem starts when I attach a compensation activity to Compensation Boundary Event by association flow (the designer chooses automatically this type of connecting object) then I am not able to generate BPMN2 source code for such process and operation save seems to be ok but after I reopen process so process is lost.

Note: validation marks this process as invalid one even if BPMN2 specification says that this process is valid. See related bz 1048218.

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


Steps to Reproduce:
1. Create simple process Start -> human task -> Compensation Event
2. Attach Compensation boundary event to Human task
3. Set "Activity reference" property to name of Human Task
4. Attach compensation activity to Compensation boundary event
5. Show source code for node or process
6. Save process
7. Reopen process

Actual results:
step 5: 
  - node - Error in server.log and alert "converting to BPMN2 failed: ..." 
  - process - Error in server.log and empty space in editor

step 6:
  - Error in server.log and alert "Successfully saved business process"

step 7:
  - process is empty


Expected results:
step 5:
  - generate a valid BPMN2 code

step 6:
  - generation of BPMN2 is success -> save process
  - generation of BPMN2 failed -> show alert about problem, error in server.log

step 7:
  - if operation save is success -> show the process
  - if operation save failed -> show alert when user close the process that process is not saved and all changes will be destroyed.

Additional info:

Comment 1 Sona Mala 2014-01-03 13:55:31 UTC
Created attachment 844958 [details]
Step 5 - screen shot for ER7

Comment 2 Sona Mala 2014-01-03 13:56:26 UTC
Created attachment 844959 [details]
Step 6 (save) - screen shot for ER7

Comment 3 Sona Mala 2014-01-03 13:57:40 UTC
Created attachment 844960 [details]
Step 5 (process source code) - screen shot for ER7

Comment 4 Tihomir Surdilovic 2014-01-07 16:44:41 UTC
Hi, sorry I am unable to reproduce this error. See attached video. Thanks.

Comment 5 Tihomir Surdilovic 2014-01-07 16:45:19 UTC
Created attachment 846776 [details]
trying to reproduce

Comment 6 Kris Verlaenen 2014-01-07 21:28:04 UTC
I was able to reproduce on 6.0.1.Final / ER7, so will require further investigation.

Comment 7 Sona Mala 2014-01-08 09:08:37 UTC
I tried it in ER7 product version.

The video which you attached is expected behaviour.  
Tiho, please do you know a commit which fixes this issue to be sure that it will be in next release?

Comment 8 Tihomir Surdilovic 2014-01-08 19:08:22 UTC
fixed in designer master and 6.0.x branches

Comment 9 Sona Mala 2014-01-23 13:33:51 UTC
I can still reproduce this issue.

I think that commit https://github.com/droolsjbpm/jbpm-designer/commit/2b823c2fc096bb3aedfd798c248d07ca70d3cfbf solve nothing about this issue.

Comment 10 Tihomir Surdilovic 2014-01-23 16:19:05 UTC
fixed the 6.0.x branch to include the fix - https://github.com/droolsjbpm/jbpm-designer/commit/0b24e17b4. There was an issue with the fix that was committed to master which was for some reason only partially moved to 6.0.x

6.0.x commit - https://github.com/droolsjbpm/jbpm-designer/commit/0b24e17b4

Comment 11 Edson Tirelli 2014-01-23 16:43:42 UTC
(6.0.0.GA.x): https://github.com/droolsjbpm/jbpm-designer/commit/2f5ea23

Comment 12 Sona Mala 2014-01-27 13:28:55 UTC
Verified for CR2. 

Process with a compensation boundary event, which is associated to Activity element, is able to save, view a source code for node or all process.