Evaluating OCL statements
Before you begin
To evaluate an OCL statement, you must set the target model to Meta Model. Also, to evaluate an OCL statement, you must have a model or profile open, and have an OCL resource in your workspace.
If any of
the following conditions are true when you evaluate an OCL statement,
the Console view reports that the OCL statement
is syntactically incorrect:
- An OCL statement refers to an element by its name or fully qualified name, and the element name or fully qualified name contains spaces
- An OCL statement uses fields whose names are OCL keywords
- An OCL statement uses enumerations that are defined by a profile
Procedure
Results
If the evaluation is successful, the results from the OCL statement are displayed in the Console view. If the evaluation fails, the first encountered syntax error is displayed in the Console view, and additional information is displayed in the Problems view.