Model-links comments in generated code sometimes don't work
Real-Time Event Frameworks based on active objects & state machines
Brought to you by:
quantum-leaps
The model-link comments don't work correctly when the names of sibling items repeat at any level of nesting. Specifically, when such links are copied from the generated code to the clipboard, the QM modeling tool does not recognize the link and does not enable the "paste-link" option.
--MMS
Anonymous
The problem arises in submachines, where the names of Entry Point Segments and eXit Points can be the same as the names of substates nested in the submachine.
The chosen solution is to make the model-links for Entry Point Segments unique by prepending "EP-" in the link name. Similarly, the model-links to eXit Points will have "XP-" prepeneded to the model link. Here are some examples of the model-link comments for Entry Point Segmens and eXit Point Segments:
--MMS
Fixed in QM 4.6.0.
--MMS