Connect to Element Feature
If a connector has source and target roles, you can connect either end of the connector to a specific operation or attribute in the source or target element. This is entirely a visual aid, to indicate which features are significant in the relationship. In code generation or transformation, the link is interpreted as a normal source-element to target-element relationship.
To do this, follow the steps below:
- Right-click on the end of the connector joined to the element containing the required feature.
- Select the Link to Element Feature context menu option. The Link to Element Feature dialog displays.
- In the Feature Type field, click on the drop-down arrow and select the required feature type - Attribute or Operation. The attributes or operations from the element are listed in the Feature field.
- Click on the required attribute or operation, and click on the OK button.
The end of the connector changes to a bracket next to the selected feature.
You might create a number of feature-to-feature relationships between two elements (such as a Class and a Table that represents the Class data) to produce a diagram similar to the following:
You can change the feature to which the connector is attached by following the above procedure and selecting the new feature.
You can break the link to the selected feature in the following ways:
- Follow the above procedure, setting the Feature Type to None.
- Delete the attribute or operation from the element
- Change the connector type to a type that does not have source and target roles
- Change the connector to a different source or target element that does not contain the feature.
Note that reversing the direction of the connector does not break the connector's attachment to the feature.