Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Qt Creator 4.5.0, Qt Creator 4.6.0-beta1
-
None
Description
Consider this (useless) state diagram:
Although you can't tell from the picture, I created the states in this order:
- State_1
- final state
- State_2
This results in the final state coming before State_2 in the generated SCXML. The SCXML editor doesn't set the compound state's initial attribute, nor does it create an <initial> element. In this case, according to the SCXML spec, State_1's initial state is the first state that appears in document order. This means the "final state" is the initial state.
The SCXML editor doesn't appear to understand this, and instead purports State_2 as the initial substate. My guess is it just looks for the first <state> element.