State Element
Element for defining standard states in the state machine
State Element
The <state> element represents a standard state in the state machine:
| Prop | Type | Default |
|---|---|---|
id? | string | - |
initial? | string | - |
Allowed Children
transition: State transitionsstate: Child statesparallel: Parallel statesfinal: Final stateshistory: History pseudo-statesdatamodel: Data model declarationsinvoke: Service invocationsdata: Data declarations
Examples
Simple State
Compound State
State with Data Model
Usage Notes
- Can be simple or compound (containing other states)
- Can define entry/exit actions
- Can include transitions
- Can contain data model
- Can invoke external services