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

Bug 1235330

Summary: Text annotations and groups within swimlanes behave incorrectly
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jeremy Lindop <jlindop>
Component: jBPM DesignerAssignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED EOL QA Contact: Marián Macik <mmacik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: mmacik
Target Milestone: ER4   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:06:10 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:

Description Jeremy Lindop 2015-06-24 14:24:16 UTC
Description of problem:
After saving a BP which has a TextAnnotation or Group inside a Swimlane, the TextAnnotation or Group is no longer contained in the Swimlane. In the editor when you move the swimlane, the TextAnnotation or Group does not move with the swimlane, but stays where it is.

Note: With the eclipse bpmn2 api, a swimlane can only contain elements of type FlowElement. TextAnnotations and Groups are Artifacts, which within the api are not flowElements.
The BPMN2.0 spec does not allow  artifacts to be placed inside container nodes, so we will need to extend our implementation of the BPMN2.0 spec (and the Eclipse bpmn2 api) so that TextAnnotations and Groups within swimlanes behave correctly in jBPM Designer.

See attached video.

Version-Release number of selected component (if applicable):
BPMSuite 6.1.0

How reproducible:
Happens in all browsers, but in IE10 and IE11, the problem is worse because each time you drag-drop an item, e.g. a TextAnnotation, the whole BP is saved to JSON then reloaded, to workaround a bug in IE's handling of SVG markers.

Steps to Reproduce:
1. Create a new BP
2. Add a swimlane
3. Add an activity, e.g. a Start activity inside the swimlane
4. Click the buton on the Activity to add a Text Annotation 
5. Move the swimlane. At this point, the Annotation moves with the swimlane because it's inside it in the metadata.
6. Save the BP (and optionally close and re-open it)
7. Move the swimlane. Now the Annotation stays where it is while the swimlane is moved.


Expected results:


Additional info:

Comment 2 Tihomir Surdilovic 2015-08-10 12:45:59 UTC
Designer master commit for Text annotations: https://github.com/droolsjbpm/jbpm-designer/commit/3062029954612a3776e97783fcc51673495cd5e8

Since this type of changes require updates to multiple components could we open a specific separate one for groups? Thanks.

Comment 3 Marián Macik 2015-10-14 16:22:53 UTC
Verified with 6.2.0.ER4.