pytransitions / transitions

A lightweight, object-oriented finite state machine implementation in Python with many extensions
MIT License
5.68k stars 530 forks source link

Examples of exporting a transition model as json or YAML. #443

Closed ghost closed 4 years ago

ghost commented 4 years ago

Is there any example that we can refer to the export of an FSM model as a JSON or YAML. And loading it back from JSON/YAML.

A simple example would help as there is a lot of prev. issues raised around it.

aleneum commented 4 years ago

Hi @pdcoded,

I hope the section "How do I load/save state machine configurations with json/yaml" in the FAQ section helps.

ghost commented 4 years ago

Perfect - Thank you @aleneum