Specifying bodies for the constraints of model elements

In UML models, the body of a constraint is a statement that defines a condition or a restriction that the constraint imposes on the model element to which it is attached. The statement should be a Boolean expression and yield a true value when evaluated in order for the model to be well formed.

To specify a body for a constraint:
  1. In the Model Explorer view or in the diagram editor, click a constraint.
  2. In the Properties view, click the General tab.
  3. On the General page, in the Body field, type a description of the constraint.

Parent topic: Using stereotypes and constraints to extend the meaning of model elements

Related concepts
Constraints

Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.