Search in sources :

Example 1 with MigratingProcessElementInstanceTopDownWalker

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();
}
Also used : MigrationCompensationInstanceVisitor(org.camunda.bpm.engine.impl.migration.instance.MigrationCompensationInstanceVisitor) MigratingActivityInstance(org.camunda.bpm.engine.impl.migration.instance.MigratingActivityInstance) MigratingActivityInstanceVisitor(org.camunda.bpm.engine.impl.migration.instance.MigratingActivityInstanceVisitor) MigratingProcessElementInstanceTopDownWalker(org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstanceTopDownWalker)

Aggregations

MigratingActivityInstance (org.camunda.bpm.engine.impl.migration.instance.MigratingActivityInstance)1 MigratingActivityInstanceVisitor (org.camunda.bpm.engine.impl.migration.instance.MigratingActivityInstanceVisitor)1 MigratingProcessElementInstanceTopDownWalker (org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstanceTopDownWalker)1 MigrationCompensationInstanceVisitor (org.camunda.bpm.engine.impl.migration.instance.MigrationCompensationInstanceVisitor)1