Browse the source Rational Rhapsody model sample

To be able to write a RulesComposer program, we need to know the structure of the information to handle. We will open the sample model found in the <rhapsodyInstallationDirectory>\Sodius\RulesComposer\help\tutorial\RhapsodyModel in the Rhapsody installation.

Here is a diagram of this model.

To open the sample model in the RulesComposer, the project must first be open in Rhapsody. Start Rational Rhapsody and open the <rhapsodyInstallationDirectory>\Sodius\RulesComposer\help\tutorial\RhapsodyModel\RulesComposer_Tutorial.rpy project.

Next read the model into the RulesComposer:

  1. Click File > New > Model.
  2. Select the Rhapsody label.

  3. Click Finish.

The Rhapsody project is loaded and shows up in a model editor:

When you select an instance (e.g. Customer), you can display its properties in the Properties view (bottom of the screen):

The Properties view displays attributes (e.g. the name Customer) and references (to other instances) of the selected instance. The references of the selected instance can also be inspected in the Instances section of the model editor. Navigating through the children of the Customer instance for example is shown below:

You can see the Class Customer is linked to the Class Order through the reference relations.

Note:
references starting with a '/' are derived references (computed from other attributes or references).

Next Section: Create a Java generation template
Prev Section: Create the RulesComposer project


Related concepts
Model

Related tasks
Navigating through the RulesComposer/MDWorkbench user interface