IBM Support

A Statechart does not start any more in Rational Rhapsody

Question & Answer


Question

How do you make a Statechart start when it doesn't start any more in Rational Rhapsody?

Cause

After adding an activity diagram directly into a package, the statechart of the objects in the same package do not start any more. The startBehavior() call from the package file has disappeared.

Activity diagrams in a package are for modeling only. But depending on the property setting Activity::General::SimulationMode the code in the package file is modified.

Answer

Token Oriented Activities are not supported for Packages. This is the reason why startBehavior() is removed from the package file. But this also affects statecharts which need the startBehavior() function.

To resolve this issue:

  1. Set the property Activity::General::SimulationMode to StateOriented for the activity diagram, or
  2. Move the activity diagram into a separate sub-package

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5.3;7.5.3.1;7.5.3.2;7.6;7.6.0.1;7.6.1;7.6.1.1;7.6.1.2;8.0;8.0.1;8.0.2","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21638194