[jboss-user] [jBPM] - Re: Process Version

Esteban Aliverti do-not-reply at jboss.com
Thu Nov 17 09:19:11 EST 2011

Esteban Aliverti [http://community.jboss.org/people/eaa] created the discussion

"Re: Process Version"

To view the discussion, visit: http://community.jboss.org/message/636984#636984

But you are changing the definition. As I mentioned before, "version" attribute means nothing to jBPM5. So, if you put a new process definition with the same id that an already existing process, all the persisted process instances will use it (the new one). The "version" attribute doesn't matter. 
The problem is what the documentation refers as "updated process" or "new version". In reality there is no update, it is just a complete different process what you have , even if one is based on the other.
* 1 id -> 1 process definition. THE VERSION DOESN'T MATTER.
* When a process instance is loaded from the DB, a process definition with the same id as the id referenced by the process instance is taken from the kbase. If you have change the definition, then the process will use it. If you didn't migrate it using the API provided by jBPM, errors could occur.
* You can "logically" update a definition y adding a new process with a new id and:* Migrating all existent process instances to e this new process id
* Letting the existing process instances to continue with the old definition (old id) and start the new processes using the new version new id)
* Abort all the existing process instances and re-start them using the new version (new id).

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111117/32fb9f94/attachment.html 

More information about the jboss-user mailing list