Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Statechart transition out of composite states only works in first concurrent partition #5096

Open
plotkin-trisense opened this issue Nov 29, 2023 · 1 comment
Labels
Graph: State Status: Triage Needs to be verified, categorized, etc

Comments

@plotkin-trisense
Copy link

This works:

stateDiagram-v2
    [*] --> ONLINE
    state ONLINE {
        [*] --> OKAY
        OKAY --> OVERHEAT
        --
        [*] --> A
        A --> B
        B --> A
    }
    OVERHEAT --> OFFLINE : on timer

image

This says "syntax error":

stateDiagram-v2
    [*] --> ONLINE
    state ONLINE {
        [*] --> A
        A --> B
        B --> A
        --
        [*] --> OKAY
        OKAY --> OVERHEAT
    }
    OVERHEAT --> OFFLINE : on timer

Looks like escaping a composite only works in the first orthogonal region? Not sure if a bug, but not very intuitive and took a while to figure out why am I getting "syntax error".

@aloisklink
Copy link
Member

I've reproduced this on https://mermaid.live so I don't think this bug is related to the mermaid-cli project explicitly.

I'm moving it to the main mermaid project.

@aloisklink aloisklink transferred this issue from mermaid-js/mermaid-cli Dec 3, 2023
@github-actions github-actions bot added the Status: Triage Needs to be verified, categorized, etc label Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graph: State Status: Triage Needs to be verified, categorized, etc
Projects
None yet
Development

No branches or pull requests

2 participants