Graphing the workflow

Events happening in the community are now at Drupal community events on www.drupal.org.
infojunkie's picture

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?

AttachmentSize
graphviz_api.php_.txt14.07 KB
php_api.php_.txt1.51 KB
workflow.patch_.txt4.65 KB

Comments

In the workflow queue

mfredrickson's picture

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

infojunkie's picture

I've since published a module to do this.

Workflow

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: