Viewing simulated activity diagrams

You can view simulations of activity diagrams that you have modeled in Rational® Rhapsody®.

In order to help you test and verify the activity diagrams you have included in your model, IBM® Rational Rhapsody provides a simulation feature that displays the progression of the activity.

Note: The activity diagram simulation feature can only be used for activities defined at the class or object level. It cannot be used for activities defined for a package or for an individual operation.

Applying simulation settings to an activity

Procedure

To specify that you want to use the simulation settings for a specific activity diagram:

  1. Open the features dialog for the relevant Configuration.
  2. On the Settings tab, verify that Instrumentation Mode is set to Animation.
  3. Open the features dialog for the activity.
  4. Set the value of the Activity::General::SimulationMode property to TokenOriented. The value of the property can be set at the level of an individual activity or higher (class, package, project).

Running the simulation

Procedure

After you have completed your activity diagram, you can view the simulation as follows:

  1. Select Simulation > Full Build.
  2. In the browser, look under Instances to find the instance of the class, and from the pop-up menu select Open Instance Activity Diagram.
  3. Use the Go Step button on the Simulate toolbar to step through the execution of the application. Green highlighting is used to indicate a step that was just performed. Pink highlighting is used to indicate actions that can currently be performed. So you may have a number of elements with pink highlighting at any given time.

Feedback