Adding roles to collaborations

In UML models, you can add a role to a collaboration to show the internal configuration of the collaboration. The role, which is represented by a part, also identifies the interaction and the behavior of a participant in the containing classifier.

You must have a structure diagram open that contains a collaboration.
To add a role to a collaboration:
  1. In the Palette, click Composite Structure Diagram and click Part.
  2. In the diagram editor, click a collaboration and specify the type of part by completing one of the following steps:
    • To create an unspecified part, click Unspecified.
    • To create a new part that is typed by a class, click Create New Class.
    • To create a new part that is typed by a component, click Create New Component.
    • To create a new part that is typed by an interface, click Create New Interface.
    • To create a part from an existing element, click Select Existing Element, select an element from the list of available structured classifiers, and click OK.
  3. Type a name and press Enter.
  4. In the Properties view, click the Advanced tab.
  5. On the Advanced page, in the Property column, expand UML.
  6. In the Property column, click Aggregation.
  7. In the Value column, click the down arrow and click None. The role element changes to a dashed outline.
Related concepts
Collaborations
Related tasks
Creating collaborations in composite structure diagrams
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.