Description of problem: It's not possible to cancel the transition to other view when I have unsaved changes in my business process. A dialog asks me whether I want to continue because I have unsaved changes. I don't agree, so I cancel this operation The unexpected behavior is that the business process is automatically saved and I'm forced to continue to the view even though I disagreed. How reproducible: Steps to Reproduce: 1. Edit a business process but don't save it 2. Open Process Definitions view 3. In the dialog, saying you have unsaved changes, click on cancel button 4. See how you are transferred to the unwanted Process Definitions view 5. When you return to the process, edited before, you'll see the changes were saved and you have no option to return the changes in BPMN designer.
I believe that this is not an issue with Designer but with the workbench. Similar behavior can be observed with other types of asset types such as rules. There even if you click on cancel, you are still transferred to the other view. Designer currently for view switching because of this issue (it never calls the @OnMayClose method of opened editors) simply saves changes so that user does not loose work. In the case of clicking on the "X" to close the actual editor, this is covered by BZ https://bugzilla.redhat.com/show_bug.cgi?id=1020353.
Verified in BPMS 6.0.0.ER7