Skip to content
diagrams.mbt
DocsArticlesGalleryAPIGitHub

Gallery / state

Mermaid concurrency and fork/join

Family: state. Status: Implemented.

Mermaid 12.2.0 state source with typed hierarchy and labelled transitions.

Scope: Structural illustration and supplied scenarios only. Guards and actions remain text. History is descriptive and is never restored by execution.

Preview

Mermaid concurrency and fork/join preview
Mermaid concurrency and fork/join preview (dark)

Source

state-mermaid-concurrent.mmd

text/plain

stateDiagram-v2
    [*] --> Work
    state Work {
        state Fork <<fork>>
        state Join <<join>>
        [*] --> Fork
        Fork --> Validate
        Fork --> Package
        Validate --> Join
        Package --> Join
        Join --> [*]
        --
        [*] --> Monitor
        Monitor --> Monitor : sample
    }
    Work --> [*]

Download source: state-mermaid-concurrent.mmd

Download SVG Download dark SVG Open offline player

diagrams.mbt · Diagramming for MoonBit.