To create a P2 Resource Structure diagram

When the diagram is created, you can start creating the appropriate elements. An example is described using the Resource Artifact element, but the same is valid for other structural elements.
To create a Resource Artifact in a diagram

To create a Resource Artifact in a Containment tree


| The structure of each Resource Artifact can be modeled using the P2 Resource Internal Structure. |
To create the elements from other resources (e.g. Word, Excel, HTML)
For more information about creating the elements from other resources, see Creating elements from other resources. |
When you have Resource Artifact created, you can start connecting them using the Composition and Aggregation relationships.
To connect the elements with the Composition relationship
From the Smart Manipulator, which appears after you select the element, choose Directed Composition.
You can also select the Composition relationship from the diagram palette.
|

Once the Composition relationships is created, in the Containment tree, you can see the Composite element and note the Resource Roles (Part Properties) displayed within the namespace of the Composite element and how the element type and multiplicity is shown.

To connect the elements with the Aggregation relationship
In the diagram palette, click the black arrow near the Association and choose Aggregation.
Click the element, which is the Aggregation End and draw the relationship to the Reference End.
To change the role name

You can edit the default name on the diagram, in the Containment tree, or in the role's Specification window.
To specify multiplicity

You can always change the multiplicity value on the diagram or in the specification window of the role element.
If you already have created a structure in the Containment tree, you can display it on the diagram. There are three ways to display the structure:
To display a created structure on a diagram (Direct Notation)
In the Display Related Elements dialog, select Association.
| If Resource Artifacts (or other structural elements) were related using the Resource Association relationship, select the Resource Association also. |

To display a created structure on a diagram (Attribute Compartment Notation)

In the Compartments menu, select Attributes.
When connecting the elements with Composition/Aggregation relationships, the roles are Association Ends. In such case, the roles will not be displayed in the Attributes compartment, only in the Structure compartment. |

To display a created structure on a diagram (Structure (Nested elements) Notation)
