Link rules are managed in the Database Designer and use link technologies and link types to create automatic links between objects on diagrams. Link rules that use the manual link technology, also allow to link objects manually .
Create Link Rules
To create a new link rule, proceed as follows:
- Choose the section “link rules” at the top of the navigation window in the Database Designer.
- Click the “New” button.
You can use the function "New" from the context menu of the section "link rules".
Create a new link rule in the Database Designer.
- A properties window for the newly created link usually appears.
You can define the link rule through the following attributes:
The desired name for this link rule.
- From Class
Specifies the output class of the link; it can be set to ”<any>” so that the link applies regardless of the participating classes.
- To Class
Specifies the target class of the link; can be set to ”<any>” so that the link applies regardless of the participating classes.
- Link Type
Defines the link type to be used for this link rule.
Determines which link technology should be used for this link rule.
Defines whether this link rule should be allowed; can be set to “Forbid” to stop links between objects.
- Condition & Notifications
See: Conditions for Link Rules
- Diagram Classes
Determines to which diagram classes the link rule should be limited; multiple selection is possible. If no selection is made, the link rule applies to all diagram classes.
Defines which link rule shall be applied when multiple rules have been created for a link type and for the same classes. The link rule with the lowest value in this property (= the highest priority) is used.
- Clicking OK creates the new link rule.
To apply a new link rule to an existing diagram, the diagram may need to be saved again.
The tab “link rules” in the properties window of the class “Activity”.
Alternate Way to Create a Link Rule
If this approach is chosen, the following points should be noted:
- No name can be defined for the link rule.
- The initial class of the link is fixed on the class, whose properties window has been opened for the creation of the link rule.
- The link type can be edited directly or newly created.
All other properties behave as described above.
Creating a new link rule over the properties window of a class.