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 ( ) ; }
Migrate activity instances to their new activities and process definition . Creates new scope instances as necessary .