Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326319

Summary: Can't add node to ActivityPartition
Product: [Modeling] MDT.UML2 Reporter: Christian Waniek <chris.waniek>
Component: CoreAssignee: UML2 Inbox <mdt-uml2-inbox>
Status: CLOSED INVALID QA Contact:
Severity: major    
Priority: P3 CC: Kenn.Hussey
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Christian Waniek CLA 2010-09-27 11:14:39 EDT
Build Identifier:  201006071241

It is completly impossible to create an ActivityNode inside an ActivityPartition, neither in the editor, nor programmatically. But following the UML2 Spec an ActivityPartition as an association
node: ActivityNode [0..*]


Reproducible: Always
Comment 1 Kenn Hussey CLA 2010-09-27 13:44:31 EDT
Activity partitions do not own their nodes and edges; rather, they reference nodes and edges owned by their containing activities.
Comment 2 Christian Waniek CLA 2010-09-28 02:42:20 EDT
Sorry, but that's not what I read in the UML2 Spec. Indeed, an ActivityGroup can't contain ActivityNodes, but specializations of ActivityGroup, like Activitypartition, have an own association node:ActivityNode[0..*] which isn't read-only or/and derived. Maybe technically ActivityNodes are always conatined in the Activity, but in my opinion I should have read-write access to the nodes immediatly contained in an ActivityPartition.
Comment 3 Kenn Hussey CLA 2010-09-28 11:29:22 EDT
Apologies for not being more explicit in my previous response.

It is already possible to add nodes to an activity partition, both programmatically and via the sample editor. Simply create an activity, create child nodes underneath it, create a child activity partition underneath the activity, then add the nodes to the "Node" property of the partition. Similar steps can be followed for edges.

(The associations in question can be seen in Figure 12.10, page 302, of formal/2009-02-02 - UML Superstructure version 2.2).
Comment 4 Kenn Hussey CLA 2011-05-31 10:36:02 EDT
Closing for Indigo release.