Cannot add behaviors to parent composite states
emmby opened this issue · comments
Mike Burton commented
Description
You can add a UML-style behavior ("trigger [guard] / action()") to state nodes in diagrams, but you cannot add a behavior to a parent node.
stateDiagram
Parent: Parent
Parent: enter [guard] / action()
[*] --> Parent
state Parent {
Child: Child
Child: trigger [guard] / action()
[*] --> Child
Child --> [*]
}
Steps to reproduce
See description
Screenshots
Code Sample
No response
Setup
- Mermaid version:
- Browser and Version: [Chrome, Edge, Firefox]
Suggested Solutions
No response
Additional Context
Proposed documentation about adding behaviors to state machines: #5512