Class MigrateProcessInstanceCmd

java.lang.Object
org.camunda.bpm.engine.impl.migration.AbstractMigrationCmd
org.camunda.bpm.engine.impl.migration.MigrateProcessInstanceCmd
All Implemented Interfaces:
Command<Void>

public class MigrateProcessInstanceCmd extends AbstractMigrationCmd implements Command<Void>
How migration works:
  1. Validate migration instructions.
  2. Delete activity instances that are not going to be migrated, invoking execution listeners and io mappings. This is performed in a bottom-up fashion in the activity instance tree and ensures that the "upstream" tree is always consistent with respect to the old process definition.
  3. Migrate and create activity instances. Creation invokes execution listeners and io mappings. This is performed in a top-down fashion in the activity instance tree and ensures that the "upstream" tree is always consistent with respect to the new process definition.
Author:
Thorben Lindhauer