I've patched workflow-4.7.x-1.0 to add a "graph" action to the workflow settings page. This action generates a Graphviz DOT file representing the states as nodes and transitions as edges, with edge labels describing the roles performing the transitions. The function then invokes the Graphviz dot command to generate a PNG image of the graph. The function uses a PHP class that encapsulates the Graphviz generation, taken from the Mantis bug tracker (which is also GPL'd).
Some installation notes:
* On Linux, Graphviz must be installed and its commands must be on the PATH for the Apache user.
* On Windows, the WinGraphviz.DOT COM object must be installed and registered.
Hope somebody fins this useful. Your feedback is appreciated.
PS. Is this the right place to submit this patch?
| Attachment | Size |
|---|---|
| graphviz_api.php_.txt | 14.07 KB |
| php_api.php_.txt | 1.51 KB |
| workflow.patch_.txt | 4.65 KB |

Comments
In the workflow queue
Great idea!
As to your question, the workflow issue queue is a better place to put this patch:
http://drupal.org/node/add/project-issue/workflow/feature
Thanks for your contribution,
-Mark
Closing the thread
I've since published a module to do this.