11-15-2011 08:35 AM
11-16-2011 01:38 PM
11-16-2011 02:19 PM
11-17-2011 01:16 PM
11-18-2011 03:09 AM
11-18-2011 03:42 AM
If there is "just" such a command, we should make sure that there is a testcase to ensure that it will be not broken by internal refactoring without someone noticing immediately.Of course, the command will be developed test-driven.
11-23-2011 09:25 AM
11-23-2011 11:03 AM
Next, I'm going to make it work with only a version number.Committed in: http://fisheye.codehaus.org/changelog/activiti/?cs=3080
04-11-2012 05:21 AM
04-11-2012 06:07 AM
Is it possible to make this service public ? ( of course with warnings on the limitations of the migration : same activity ids/type, same branches..)We don't want to expose this feature in the public API, because we want to ensure that the people, who use it, know what they are doing.
((ProcessEngineImpl) processEngine).getProcessEngineConfiguration().getCommandExecutorTxRequired().execute(new SetProcessDefinitionVersionCmd(…))
But let me quote the warning from the documentation of the command:Warning:
This Command will NOT perform any migration magic and simply set the process definition version in the database, assuming that the user knows, what he or she is doing.
This is only useful for simple migrations. The new process definition MUST have the exact same activity id to make it still run.
Furthermore, activities referenced by sub-executions and jobs that belong to the process instance MUST exist in the new process definition version.
If the process instance is not currently waiting but actively running, then this would be a case for optimistic locking, meaning either the version update or the "real work" wins, i.e., this is a race condition.
[…]it's not possible to have two versions of code running for each process version.One approach, you can also think about, is to use an environment with strong class loader isolation, e.g., an application server or OSGi container, and add a version number to the process definition key. This way you can run multiple versions of a process definition and the code that belongs to it in parallel. The camunda fox Community Edition allows that, too.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.