alysivji / alysivji/finite-state-machine

fsm_draw_state_diagram command

Ouverte
#29 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
113
Forks
11
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hello,

I am not really clear on the 'fsm_draw_state_diagram' command and how to generate a state diagram after implementing your State Machine code. I am trying to generate a state machine diagram for the code below using your implementation. The comment below from one of the documentations wasn't really clear to me and it reads thus:
...................................................................................................................................................................................................................................................................
"State Machine workflows can be visualized using a state diagram.
finite-state-machine generates diagrams using Mermaid Markdown syntax, which can be viewed using the Mermaid Live Editor.
Use the fsm_draw_state_diagram command and point to State Machine workflow class that inheritences from StateMachine.

# class parameter is required
$ fsm_draw_state_diagram --class examples.turnstile:Turnstile

# initial_state parameter is optional
$ fsm_draw_state_diagram --class examples.turnstile:Turnstile --initial_state close
.................................................................................................................................................................................................................................................................

How do I go about this? I already have my code written up. Just need to finish up with the visualization of the state diagram. Will appreciate any help.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.