Mermaid concurrency and fork/join
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-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 --> [*]