The association between ButtonPressed and stop_doing_fancy_stuff is not present in the graphic.
I guess the event/action pairs are plotted separately to prevent the graph from getting to cluttered. But since events aren't necessarily associated with only one action, this approach will hide some information about the statemachine.
Since the only unique association for events and action is the transition, the actions and guards have to be printed directly in the graph or a complete list of transitions needs to be added instead of the event/action boxes.
When using
features = ["graphviz"]
to visualize a statemachine, every event will only be displayed with one of its associated actions.Giving this small statemachine example:
The generated visualization looks like that:
The association between
ButtonPressed
andstop_doing_fancy_stuff
is not present in the graphic.I guess the event/action pairs are plotted separately to prevent the graph from getting to cluttered. But since events aren't necessarily associated with only one action, this approach will hide some information about the statemachine.
Since the only unique association for events and action is the transition, the actions and guards have to be printed directly in the graph or a complete list of transitions needs to be added instead of the event/action boxes.