Mermaid composite and choice
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
Source
state-mermaid-choice.mmd
text/plain
stateDiagram-v2
[*] --> Review
state Review {
[*] --> Draft
Draft --> Decision : submit
state Decision <<choice>>
Decision --> Approved : accepted
Decision --> Draft : revise
Approved --> [*]
}
Review --> Published : publish
Published --> [*]