use of org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstanceTopDownWalker in project camunda-bpm-platform by camunda.
the class MigrateProcessInstanceCmd method migrateProcessInstance.
/**
* Migrate activity instances to their new activities and process definition. Creates new
* scope instances as necessary.
*/
protected void migrateProcessInstance(MigratingProcessInstance migratingProcessInstance) {
MigratingActivityInstance rootActivityInstance = migratingProcessInstance.getRootInstance();
MigratingProcessElementInstanceTopDownWalker walker = new MigratingProcessElementInstanceTopDownWalker(rootActivityInstance);
walker.addPreVisitor(new MigratingActivityInstanceVisitor(executionBuilder.isSkipCustomListeners(), executionBuilder.isSkipIoMappings()));
walker.addPreVisitor(new MigrationCompensationInstanceVisitor());
walker.walkUntil();
}
Aggregations