Prev | Next |
Connector Constraints
A UML connector can also have associated constraints placed on it. Constraints provide information on the rules and conditions under which a relationship operates. For example, it might be a pre-condition that a customer is of a certain type before an Association connector to an Account is allowed.
You can add the constraints using the 'Constraints' tab in either the connector 'Properties' dialog or the Properties window; the fields are the same.
Access
Ribbon |
Start > Explore > Properties > Properties > click on connector in a diagram > Constraints (Properties window) Design > Element > Properties > Properties > click on connector in a diagram > Constraints (Properties window) |
Keyboard |
Properties window) > click on connector in a diagram > Constraints ( |
Context Menu |
Right-click on Connector | Properties > Constraints (connector 'Properties' dialog) |
Other |
Double-click on Connector > Constraints (connector 'Properties' dialog) |
Set constraints on a connector
Option |
Action |
See also |
---|---|---|
Constraint |
Type the name of the constraint. |
|
Type |
Click on the drop-down arrow and select the appropriate type of the constraint (such as Pre-condition). |
|
<notes> |
Type any explanatory notes you might require on the constraint. You can insert line breaks in the text by pressing . |
|
Save |
Click on this button to save the constraint definition. The constraint is added to the 'Defined Constraints' list. |
|
New |
Click on this button to clear the dialog fields so that you can enter details of a new constraint. |
|
Defined Constraints |
Displays a list of the constraints defined for this connector. |
|
Delete |
Click on this button to delete a constraint you have selected in the 'Defined Constraints' list. The constraint is immediately removed from the list. |
Notes