Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.12, 6.2.7, 6.4.2, 6.5.0 Beta1
-
None
Description
Steps to reproduce
- Build and run the attached project.
- Click "Transition" 2x to trigger state changes.
Expected sequence of states
"State_A1|State_A2" → "Final_1|Final_2" → "State_B"
Actual sequence of states
"Final_1|State_A2" → "Final_1|Final_2" → "State_B"
Observations
- In "State_P1", although the Qt Creator SCXML editor shows that "State_A1" is the initial state, the qscxmlc compiler made "Final_1" the initial state instead.
- This seems to be related to the XML document structure: "Final_1" is written before "State_A1", but "State_A2" is written before "Final_2".
Workaround
Explicitly mark all "Initial" states