Graphing the workflow

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by infojunkie on January 28, 2007 at 8:02pm

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_.txt 14.07 KB
php_api.php_.txt 1.51 KB
workflow.patch_.txt 4.65 KB
Categories:

Comments

In the workflow queue

Posted by mfredrickson on January 29, 2007 at 4:22pm

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

Posted by infojunkie on January 17, 2008 at 11:13pm

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:

AltStyle によって変換されたページ (->オリジナル) /