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

Misleading doc statement about state diagram? #5472

Open
voroninp opened this issue Apr 19, 2024 · 0 comments
Open

Misleading doc statement about state diagram? #5472

voroninp opened this issue Apr 19, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@voroninp
Copy link

Description

There's a statement in the docs about state diagram:

You can not define transitions between internal states belonging to different composite states

Cannot I?

Steps to reproduce

Here's the diagram I created:

---
title: Global states of the app.
---
stateDiagram-v2
    notAccessible: App is not accessible
    accessible : App is accessible 

    state notAccessible {
        init: App initialization phase
        Stopping --> [*]
    }

    state accessible {
        Starting --> Running
        Running --> Suspending
        Suspending --> Suspended
        Suspended --> Starting
    }

    [*] --> init
    init --> Starting
    Running --> Stopping
    Suspended --> Stopping

And here's what I get:
image

Screenshots

No response

Code Sample

No response

Setup

  • Mermaid version: 10.9.0
  • Browser and Version: Chrome 123.0.6312.123

Suggested Solutions

Well, I'm happy it works =D
I'm simply confused by the documentation.

Additional Context

No response

@voroninp voroninp added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant