Home Learn more about OCL Rational Rose OCL-AddIn product description Downloads Buy our products Support information Sitemap Contact Privacy policy  

This page takes you on a tour through Oclarity for Rational Rose.
You will see how to
  • Add OCL-expressions to your models
  • Trigger the check of OCL-expressions in your model
  • View and interpret the result of a check
  • Export and publish OCL expressions.
You can click on any of the pictures below to view a larger version of the picture
Edit OCL-code in note

Edit OCL-code in note

If you add an OCL-expression to a diagram all you have to do is to embed the OCL-expression in curly braces in a note.

Start OCL-Editor from browser

Start OCL-Editor from browser

If you want to use the OCL-editor, you have to use the context menu on a class. This is possible both in the browser and with selected classes in a diagram. The context menu contains two entries specific for our AddIn: "check OCL" and "edit OCL".

Start OCL-editor from diagram

Start OCL-editor from diagram

The OCL-editor may also be invoked from a class diagram.

OCL-editor

OCL-editor

Once the editor is open you have a powerful editing component available with all expected features like syntax highlighting, search and replace and unlimited undo/redo.

Checking code

Checking code

A check of the code can be started at any time by pressing a shortcut key. When the code is saved, it is also implicitly checked.

Trigger OCL-code check in browser

Trigger OCL-code check in browser

A check of the OCL code can be triggered for one or more selected classes in the browser.

Trigger OCL-code check in class diagram

Trigger OCL-code check in class diagram

A check of the OCL code can be triggered for one or more selected classes in a class diagram.

Trigger check on class diagram

Trigger check on class diagram

All classes on a class diagram can be checked at once.

Trigger check on all OCL expressions in the model

Trigger check on all OCL expressions in the model

All OCL expressions in the model can be checked at once. This ensures the consistency between OCL code and the model.

Display Results of a check

Display Results of a check

Whenever a check is triggered outside the OCL editor, the result is displayed in a separate window. The OCL-expressions are shown in a tree-like structure sorted according to their context and the type of expression. Alternatively you can display all expressions or only those that contain errors. A double click on an error node immediately launches the OCL editor and places the cursor on the offending element.

Export OCL-expressions

Export OCL-expressions

The OCL expressions contained in a model can be exported to an XML-file. An XSL-file may be applied automatically to the exported file. This enables the easy publication of the OCL expressions to your whole team and protects your investment.

Page last modified: 2009-12-01 22:07:47