While creating some diagrams in Dia using the bpmn sheet I noticed that there's a capability for using python extensions on Dia. They have some examples on their site about doing so.
What I haven't seen yet (and I'm wondering about) is whether you can generate something code, yaml or xml based on a diagram? For example say you create a workflow process diagram - is there a way you could examine it in Python and then write some logic in there to produce a representation of the workflow that could be used to drive a workflow engine perhaps?