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.

Comments

infojunkie’s picture

Title: Graphing the workflow » Graphing the workflow, file 2
StatusFileSize
new4.65 KB
infojunkie’s picture

Title: Graphing the workflow, file 2 » Graphing the workflow, file 3
StatusFileSize
new1.51 KB
infojunkie’s picture

Title: Graphing the workflow, file 3 » Graphing the workflow
m3avrck’s picture

"This thread is worthless without pics" :-)

Any screenshots of this in action? Would make it even more compelling to help test this patch ;-)

infojunkie’s picture

StatusFileSize
new33.68 KB

Here is a screenshot.

NOTE: To see the additional "graph" verb in the workflow settings page, it is necessary to disable the workflow module then re-enable it. That's because 2 new menu items are added to workflow_menu.

m3avrck’s picture

Oooh wow, that's awesome! Much easier than reading a bunch of radio buttons in a grid :-)

infojunkie’s picture

Status: Needs review » Closed (fixed)

I've created a workflow_graph module for 5.1 that performs this functionality (http://drupal.org/project/workflow_graph), making this patch obsolete. However, for the graph module to be truly integrated into workflow, it still needs this new patch (http://drupal.org/node/161190) ;-)