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 Rational Rhapsody installation.
Here is a diagram of this model.
To open the sample model in the RulesComposer, the project must first be open in Rational Rhapsody. Start Rational Rhapsody and open the
<rhapsodyInstallationDirectory>\Sodius\RulesComposer\help\tutorial\RhapsodyModel\RulesComposer_Tutorial.rpy project.
Next read the model into the RulesComposer:
The Rational 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

Navigating through the RulesComposer/MDWorkbench user interface