views:

12

answers:

1

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.

Dia Project

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?

+2  A: 

Yes it is possible, the problem is that nobody have done it yet. See here for an example to codegen C++ or Python code for UML Diagrams, if this is possible, surely you can do what you want.

Tarantula
OK that kicks ass! Thanks man!
Khorkrak