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

Bug 1073654

Summary: Process can not be reopened in Designer if it is imported containing missing data types
Product: [Retired] JBoss BPMS Platform 6 Reporter: Alessandro Lazarotti <alazarot>
Component: jBPM DesignerAssignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED CURRENTRELEASE QA Contact: Sona Mala <smala>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: alazarot, kverlaen, rrajasek, vigoyal
Target Milestone: ER1   
Target Release: 6.0.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The Process Designer was unable to open processes containing user tasks that had been written externally if they contained missing data types. While trying to open such processes, an exception was thrown and nothing was displayed. The runtime for BPMS could execute these processes, but the Process Designer GUI had trouble displaying them. In addition, a process that contained "." in process variable names also caused issues when they were displayed in the Process Designer. Both these issues have now been fixed with this release.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 19:50:33 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
updated process (using dashes instead of dots) none

Description Alessandro Lazarotti 2014-03-06 21:29:34 UTC
Description of problem:
Some versions of jBPM plugin for Eclipse/JBDS have written user tasks without defining data types. The jBPM runtime can read and execute these process with no issues, however users are not able to open in the web Process Designer. 

Exception like below is logged when tried to open this files and nothing is showed:

09:35:03,639 ERROR [stderr] (http-/127.0.0.1:8080-2) org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Value 'org.eclipse.bpmn2.impl.ProcessImpl@40b12fdc (id: activate, anyAttribute: [drools:packageName=defaultPackage, drools:version=1]) (name: ActivateWorkflow) (isClosed: false, isExecutable: true, processType: None)' is not legal. (inputStream://dummyUriWithValidSuffix.xml, 401, 52)
09:35:03,639 ERROR [stderr] (http-/127.0.0.1:8080-2)     at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:83)
09:35:03,639 ERROR [stderr] (http-/127.0.0.1:8080-2)     at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:191) 


Steps to Reproduce:
1. import the attached bpmn2 file in the web process designer
2. save the process
3. close the browser
4. log in and try to reopen the process

Actual results:
It is not opened abd has exceptions in log

Expected results:
Process opened correctly

Additional info:
Customer has huge process build in this way and must them opened by our web process designer

Comment 3 Tihomir Surdilovic 2014-03-12 19:03:58 UTC
I have fixed two issues in Designer which came up by testing the attached process. Those are checked into designer master and 6.0.x branches. 

There is still one outstanding issue - the attached process uses dots "." in process variable names which causes problems with data input and output assignments in tasks (Designer implements transformations on dots). This implementation in Designer is currently only partial implementation so it can be removed for now and revisited for 6.0.2. 

A workaround for this to work now is to use lets say dashes instead of dots in variable names. I have changed the process bpmn2 (attached) to do that and it reopens like that fine in Designer (alongside the code changes committed). 

If this is sufficient for the customer now I think that should be fine. If not please let me know and we can disable the current transformation feature in Designer as well.

Comment 4 Tihomir Surdilovic 2014-03-12 19:05:49 UTC
Created attachment 873723 [details]
updated process (using dashes instead of dots)

Comment 6 Alessandro Lazarotti 2014-04-04 21:12:16 UTC
Rajesh set needs info to me - if this is related to Tiho question about to remove transformation -  I am fine with removing it. Actually I think that transformation is not supposed to occur in variable names, but only for variable values. 
Thanks

Comment 7 Tihomir Surdilovic 2014-04-09 01:34:35 UTC
the transformation feature has been disabled in designer master and 6.0.x branches.

Comment 8 Sona Mala 2014-05-06 13:07:50 UTC
I verify that the attached process (using dots in variables) is able to import to jBPMS Designer (6.0.2 ER2 BPMS) and the save operation does not throw any error to the server.log which should cause that a reopening of such process fails.