Hallo there :)
I am working on a small project, based on jportal & jbpm - now I am creating a small portlet that shows, loads and deletes process definitions. To get a better overview of the definitions I want to show the version - does the function int ProcessDefinition::getVersion() provide this feature? Where do I have to add the version information in the xml?
<process-definition name='testflow' version='1.0'>doesn't do anything: getVersion() is always '-1'.
the version is not in the definition. It is added when deploying the definition. Look in the deploypar ant task source code to see how to do this. Or take a look at the api docs (do not know by heart which class and method)