xstate-plantuml
Version:
Visualize a xstate or react-automata statechart as a plantuml state diagram
33 lines (32 loc) • 556 B
JSON
{
"key": "download",
"initial": "idle",
"states": {
"idle": {
"on": {
"START": {
"downloading": {
"actions": "initializeCache",
"cond": "stableConnection"
}
}
}
},
"downloading": {
"on": {
"PAUSE": "paused",
"DONE": "finished"
},
"activities": "streamChunk"
},
"paused": {
"on": {
"RESUME": "downloading",
"CANCEL": "finished"
}
},
"finished": {
"onEntry": "cleanCache"
}
}
}