Composite state is broken by unrelated connection

0 votes
asked Jun 13, 2014 in Bug by ndeubert (120 points)

Hello,

First off thank you for such a great tool, it is very helpful. I have the following code for a state machine and I noticed when I uncomment out the last line, the "ActivatingPlay" state pops out of the "Activating" state which is not correct because it is supposed to be a composite state in the "Activating" state. It is very easily reproducible with the latest version.

@startuml
left to right direction
[*] --> iu
state "InactiveUnselected" as iu
state "Inactive" as i
state "Active" as a { 
    state "Play" as p
    state "Pause" as ps
    [*] --> p : Play
    [*] --> ps : Pause
    p --> ps : Pause/Pause/\nPlayToggle
    ps --> p : Play/Play/\nPlayToggle
    p -down-> i : DeactivateRequest
    ps -down-> i : DeactivateRequest
}
state "Activating" as at {
    state "ActivatingPlay" as ap
    state "ActivatingPause" as aps 
    [*] --> ap : Play
    [*] --> ap : SkipNext
    [*] --> ap : SkipPrevious
    [*] --> aps : Pause
    ap --> p : ActivateRequest
    aps --> ps : ActivateRequest
}
iu --> iu : Play
iu --> at : Selected (Selected in  App)
at --> a : ActivateRequest
i --> iu : Unselected
i --> ap : Play
i --> ap : SelectContentItem
a --> i : DeactivateRequest
'a --> iu : Unselected
@enduml

 

 

And this is it with the last line commented out:

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...