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:
- Set the property Activity::General::SimulationMode to StateOriented for the activity diagram, or
- Move the activity diagram into a separate sub-package
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21638194