I'm trying to create a ProcessDefinition programmatically where this process has some fixed nodes, transactions, etc and some tasks defined by the user throught the user interface (a little designer for normal human).
How can I this process definition parse to jpdl xml? (I know that JpdlXmlWriter is deprecated, but exist another way?). I think that I can deploy the process definition directly but, is this the better way?.
In addition, can i change a deployed process definition programatically?, for example, add tasks and deploy a new version of the process?.
The idea is dynamically create a process definition and deploy into workflow engine, very simple but very powerfull for final user in same cases. How can i do it?, is it possible with jBpm?
it's not possible to 'parse' it to xml again. Deploying directly is an option.
Regarding the changes, please read the manual first. There is a paragraph on this with 'risks'.