Creating Relationships to an Element

You can normally create relationships from an element to a new or existing element in the diagram.

Options for Creating Relationships

Where You Can Edit Relationships

Relationships are normally created between model elements in a diagram using the so-called carousel.

Different procedures are recommended depending on the situation:

  • Type of target node known

    Create a target node in the diagram, select the source and target nodes, [Ctrl]+[N]

    Only the edges permitted by the configuration are offered in a dialog.

    Or select an edge you are allowed in the carousel and drag it to the target node.

  • Type of relationship known

    Use the carousel of the source node; drag the edge to a free point

    Only the target nodes permitted by the configuration are offered for selection.

  • Create a recursive relationship

    Select a node, [Shift]+[Ctrl]+[N]

    Only the permitted recursive edges are offered.

It is also possible to edit dependencies between model elements in the Dependencies tool window or in the Dependency Editor.

Standard Case: Carousel

The carousel appears next to the selection rectangle of the diagram element selected. The following icons appear.

Table: Carousel Icon
Icon Meaning
 

Create

Circular icons are shown for the relationship types that are permissible for the diagram element selected.
Permissible relationships are expanded sideways, if applicable.

Relationships can be dragged to the source node itself (recursive relationship), to a target node or to an empty point in the diagram (relationship to new target node).

 

Add

Square icons are shown for all existing types of relationships that do not exist in the diagram yet.

Regardless of which target nodes are already shown, the relationship must be dragged to an empty point in the diagram. A dialog appears which you can select the existing relationship in.

 

Wizard

A circular icon also appears when using the relationship wizard. You can use the icon if the Additionally display relationship wizard in carousel or Display relationship wizard in carousel only option is active.

Relationships can be dragged to an existing target node or to an empty point in the diagram (relationship to new target node). A permissible relationship or a new element that can be connected to the selected element via a relationship is selected in a dialog and then you must set whether the relationship should also be created in the other direction.

A relationship type always also sets permissible element types that may be created.

If you drag the relationship to an existing digram element, then the following may be the target:

  • The selected diagram element itself
  • Another existing diagram element within or outside of the visible diagram area
  • A new element with an owner that may be an existing diagram element within the visible diagram area

If another model element is required when creating a relationship, then it is selected in the namespace dialog.

Icons with a thick line around them mean that they contain more than one relationship icon; if you place the mouse pointer over it, they expand. A tool tip is normally shown for each relationship type.

You can drag the rubber band where you want to create a relationship to by clicking and holding on the relationship icon. This relationship target can also be the selected element itself.

Keep the [Shift] key pressed while releasing the left mouse button to create a relationship to an existing node that is not in the visible diagram section. Instead of the list of elements to be created as new, a list of nodes that already exist in the diagram appears.

The following overview shows the essential variants for creating a relationship to an element. Whether a selection dialog appears or not depends on the relationship type (concrete icon) and target.

Table: Variations for Creating a Relationship to an Element
Variation Icon Type Relationship Target Selection Dialog Description
1a
Create
Free point in the diagram yes

Select the target element's element type in the Create Target dialog. The element types shown are those permitted according to the configuration for the relationship type dragged from the selected element in the diagram.

A new element is created in the diagram and assigned in the model structure taking any existing creation prerequisites into consideration. The dragged relationship is created for the new element; this may create other model elements, e.g. roles.

1b

Free point in the container

yes

Select the target element's element type in the Create Target dialog. The element types shown are those permitted according to the configuration for the relationship type dragged from the selected element and whose owner may be the selected element or the existing diagram element.

Existing relationships and elements are shown in the diagram.

1c

Selected element or other available diagram element*

No

A relationship of the chosen type is created from the selected element to itself or to the target element; this may create other model elements, e.g. roles.

If a relationship type is dragged on a node in a concept diagram which a hidden relationship of the same type already exists, then the first hidden relationship of the same type is used. Otherwise the relationship is created new.

2a
Add
Free point in the diagram or container
yes

Select the element that an existing relationship to the dragged type should be shown for in the Show in Diagram dialog. Elements which have relationships of the dragged type that are not yet shown are shown. For directed relationships, you can evaluate relationships existing in the opposite direction.

The existing relationship and selected element are shown in the diagram.

2b Other element that has a relationship to the selected element that is not yet shown in the diagram yes

Select the relationship that you want show in the Show in Diagram dialog. You can select all hidden relationships between source and target element. For directed relationships, you can evaluate relationships existing in the opposite direction.

The selected relationship is shown in the diagram.

3a*  
Wizard
Free point in the diagram or in the container Always two

Select the new target element's element type in the Create Target dialog. Element types which can be linked to a relationship with a selected element in accordance with the configuration.

Select the type of the new relationship between the selected and new element in the Create Connection dialog. The relationship types shown are those permitted according to the configuration for the relationship type from the selected element to the target element in the diagram. For directed relationships, you can evaluate relationships existing in the opposite direction.

A new element is created in the diagram and assigned in the model structure taking any existing creation prerequisites into consideration. The relationship dragged to the new element is created.

3b* Selected element or other available diagram element yes

Select the relationship type that you want to create to the target node in the Create Connection dialog. Permissible relationship types from the source to the target node are shown. You can create the relationship in the other direction for directed relationships.

If a relationship type is dragged on a node which a hidden relationship of the same type already exists for, then the first hidden relationship of the same type is used. Otherwise the relationship is created new.

The relationship is shown in the diagram.

* Only if the Additionally display relationship wizard in carousel or Display relationship wizard in carousel only option is active.

The mouse pointer shows that:

  1. The selected relationship is not permissible to the existing diagram element or

  2. There is no relationship of the selected type that already exists and is not yet shown in the diagram or

  3. There is no permissible relationship between source and target node.

 

Example for a relationship selection in a selected class' carousel:

Additional Editing Options for Dependencies

A dependency is a relationship between two model elements and represents the fact that when a change is made to the independent model, this will affect the dependent model. The dependency refers to the model elements themselves and not to any instances of these elements which may exist. Depending on the configuration, dependencies can be specified as abstractions, uses, realizations, fulfillment relationships etc..

You can use the Dependencies and Dependency Editor tool windows for editing dependencies.

Additional Editing Options with the Relationship Wizard

You can use additional editing functions when the Additionally display relationship wizard in carousel or Display relationship wizard in carousel only option is active.

  • You can use the wizard to drag a relationship to a free point in the diagram. In a first dialog, select a permissible element for the new target node. In another dialog, select a permissible relationship and, if required, set whether the relationship should be created in the opposite direction.

    Concept diagram: You can only create concept connections between elements which either no constraint was made for owner and target or which the participating elements were defined as a permissible pair. Concept connections are configured in ArchiMate profiles in accordance with the specification.

  • You can use the wizard to drag a connection to a node and select a permissible connection in a dialog, as well as set that the connection should be created in the opposite direction.

    Concept diagram: If a connection type which has hidden connections between both nodes is selected in the dialog, then the first hidden connection of the same type is used. Otherwise the relationship is created new.