Red Hat Bugzilla – Bug 993540
jBPM Designer does not show reasonable message when importing/opening incorrect bpmn2 definition
Last modified: 2014-08-06 16:09:32 EDT
Created attachment 783212 [details]
incorrect process definition
The process definition (attached) contains incorrect reference in attribute bpmnElement of bpmndi:BPMNPlane element. When I try to import this definition into Designer (after opening new BPMN2 process, using "Import from BPMN2") error message appears telling me "Failed to import BPMN2. Check server logs for more details."
There is no information about what is wrong with the process definition. User (business analytic could be a typical user of jBPM Designer) should not be forced to check server logs. This user very probably doesn't know where is some server log and he should not have access to it.
I also tried to get this incorrect definition into the Designer by pushing to the corresponding repository inside .niogit. I haven't managed to open this definition - this time jBPM Designer did not load at all, so I was not even informed that I should look at a server log.
Tested with community 6.0.0.CR1
Its a must fix for GA
Internal Whiteboard: Beta Blocker → Blocker
Not critical for Beta, but need to address for GA
Designer shows a message where users can see details of the error during load (log messages). Empty process is presented to user after.
Have you made any update in the code compared to what it used to be before ?
At the minimum there should be a pop up dialog saying the process could not be opened due to errors and the log should have soem comprehensive details on what those errors are.
what do you mean when you say log?
If you mean the server log then I don't think it is a good solution to dump the details to the server log only. An analyst should not be required to contact the administrator to get the error message why the process import did not succeed.
Verified on BPMS-6.0.0.ER5