This post originated from an RSS feed registered with Python Buzz
by Sidnei da Silva.
Original Post: DCWorkflow to 'dot' graph
Feed Title: awkly.org
Feed URL: http://awkly.org/categories.rdf?category=Python
Feed Description: dreamcatching :: making your dreams come true
Ok, so Xiru started it and made me feel dumb for not having done it
earlier. So I took the time this morning to make a small script to
export DCWorkflow definitions into a dot file, to be used by
graphviz.
To use the script, just drop it at the root of your CMF/Plone site,
and call it passing the workflow id that you want to export as the
wf_id parameter. It's really simple stuff, and I think its
possible to put more info into the graph, but haven't studied the
dot format enough to do it. :)
An interesting fact is that in the process of exporting the dot
file, I ended up finding a missing transition on the
folder_workflow of Plone. Better fix it :)