Hi! I have the following state-diagram.
I meet an unexpected behavior when I declare transitions to nested states of a neighbor state.
In this diagram state 22 is rendering as a child of state 1 but I expect it to be a child of state 2.
This works as expected if I move transition 11 --> 22 to any place after state 22 declaration.
The second point is that if I declare similar transition but with top level state as a target (state 2) it works as expected.
Is that expected behavior, and if so what is the good way to declare such transitions?
@startuml
hide empty description
state 1 {
state 11 : I am a child of 1
[*] --> 11
11 --> 22 : this transition does not work as expected
11 --> 2 : but this works
}
state 2 {
state 21 : I am a child of 2
state 22 : I am a child of 2
[*] --> 21
}
[*] --> 1
@enduml