ash_state_machine/documentation/topics/charts.md

14 lines
384 B
Markdown
Raw Normal View History

2024-05-06 01:35:11 +12:00
# Charts
Run `mix ash_state_machine.generate_flow_charts` to generate flow charts for your resources. See the task documentation for more. Here is an example:
```mermaid
stateDiagram-v2
pending --> confirmed: confirm
confirmed --> on_its_way: begin_delivery
on_its_way --> arrived: package_arrived
on_its_way --> error: error
confirmed --> error: error
pending --> error: error
```