We have a sitution in our company to create workflow on the fly and we cannot create processdefinition.xml file and then deploy this processdefinition.xml to the database....
In our case we have very flexible model so that we have to create the workflow processdefinition on the fly and then deploy to the jbpm...
I need help urgently... please do help me as soon as possible as we have big pressure from my project manager :D
look at the testcases in the source. Many 'examples' there on how to create them programatically