Bug 461263 - Delete diagram context action do not delete participants
Summary: Delete diagram context action do not delete participants
Status: REOPENED
Alias: None
Product: BPMN2Modeler
Classification: SOA
Component: UI (show other bugs)
Version: 1.1.2   Edit
Hardware: Other All
: P3 normal (vote)
Target Milestone: future   Edit
Assignee: Robert Brodt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 466601 464052
Blocks:
  Show dependency tree
 
Reported: 2015-03-03 03:06 EST by Mauro Poggianella CLA
Modified: 2015-05-07 09:58 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mauro Poggianella CLA 2015-03-03 03:06:46 EST
The "Delete diagram" action from the context menu of the editor do not delete the participants included in the diagram.
After the deletion of the diagram all seems ok, but if the editor is colsed and subsequently reopened the user is promped whit a window saying that some elements (the participant present in the previously deleted diagram) miss the "DI" element.

Step to reproduce:
1) Create a new Collaboration Diagram
2) Add a new "Sub-Diagram" (Menu -> Diagram -> New Collaboration Diagram)
3) In the new "Sub-Diagram" add a Participant
4) Right click on the diagram canvas and select "Delete Diagram" and confirm
5) Save the diagram and close it
6) Reopen the diagram
Comment 1 Robert Brodt CLA 2015-05-06 11:27:29 EDT
Fixed in 1.1.3
Note that the Participant element is not  deleted since it may need to be referenced by other elements. There is currently no way to delete this Participant but it can be seen in the Outline View. There is an enhancement request to expand element editing capabilities of the Outline View, which would be the only way of deleting this element.
Comment 2 Jozef Marko CLA 2015-05-07 06:02:41 EDT
Bob, I have created new collaboration diagram like File-> New-> Other-> BPMN2-> Generic BPMN 2.0 Diagram-> Collaboration.

I have obtained two default participants, Initiating Pool and Non-initiating Pool.

I want to verify bugfix, but I do not know which menus, and where I should click to reproduce Mauro's steps 2),3) and 4). Could you give me any advice how to do this.

It is my first step, creation of collaboration diagram correct?
Comment 3 Robert Brodt CLA 2015-05-07 09:58:49 EDT
Hi Jozef,

Sorry, it looks like the Pool creation/deletion is still not right. See related bug 464052. But for your information, here's the procedure:

JBPM does not support Pools, so to test this, you will have to first create a new general project, and then run the "Generic BPMN 2.0 Diagram" wizard; create a Collaboration diagram.

Next, in the main menu bar you should see a "Diagram" action; select "Create Collaboration Diagram" and enter a name for the diagram. This will create a new tab on the editor with an empty canvas.

Open the eclipse Outline Viewer and from its toolbar click the middle button named "Diagram Interchange Model". This will display the BPMNDI (the presentation) model hierarchy. You should see two top-level nodes that represent the main diagram and the new one just created.

From the "Swim Lanes" toolpalette category, Drop a Participant ("Pool") onto this page. The Outline View should show the new Pool created under the second diagram node; instead it is added to the first diagram. This is wrong!

To delete the diagram, right-click on the canvas; from the popup context menu select "Delete Diagram <name>". This SHOULD delete the diagram page along with the Pool.

I'm reopening this bug for "future" milestone release.