stateDiagram-v2
    [*] --> Active
    state Active {
        [*] --> Running
        Running --> Paused: pause
        Paused --> Running: resume
    }
    Active --> Stopped: stop
    Stopped --> [*]
