Community
Participate
Working Groups
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
Activity partitions do not own their nodes and edges; rather, they reference nodes and edges owned by their containing activities.
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.
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).
Closing for Indigo release.