Class MigratingProcessElementInstanceVisitor
- java.lang.Object
-
- org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstanceVisitor
-
- All Implemented Interfaces:
TreeVisitor<MigratingProcessElementInstanceTopDownWalker.MigrationContext>
- Direct Known Subclasses:
MigratingActivityInstanceVisitor,MigrationCompensationInstanceVisitor
public abstract class MigratingProcessElementInstanceVisitor extends java.lang.Object implements TreeVisitor<MigratingProcessElementInstanceTopDownWalker.MigrationContext>
- Author:
- Thorben Lindhauer
-
-
Constructor Summary
Constructors Constructor Description MigratingProcessElementInstanceVisitor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract booleancanMigrate(MigratingProcessElementInstance instance)protected java.util.List<ScopeImpl>collectNonExistingFlowScopes(ScopeImpl scope, MigratingScopeInstanceBranch migratingExecutionBranch)Returns a list of flow scopes from the given scope until a scope is reached that is already present in the givenMigratingScopeInstanceBranch(exclusive).protected abstract voidinstantiateScopes(MigratingScopeInstance ancestorScopeInstance, MigratingScopeInstanceBranch executionBranch, java.util.List<ScopeImpl> scopesToInstantiate)protected voidmigrateProcessElementInstance(MigratingProcessElementInstance migratingInstance, MigratingScopeInstanceBranch migratingInstanceBranch)voidvisit(MigratingProcessElementInstanceTopDownWalker.MigrationContext obj)Invoked for a node in tree.
-
-
-
Method Detail
-
visit
public void visit(MigratingProcessElementInstanceTopDownWalker.MigrationContext obj)
Description copied from interface:TreeVisitorInvoked for a node in tree.- Specified by:
visitin interfaceTreeVisitor<MigratingProcessElementInstanceTopDownWalker.MigrationContext>- Parameters:
obj- a reference to the node
-
canMigrate
protected abstract boolean canMigrate(MigratingProcessElementInstance instance)
-
instantiateScopes
protected abstract void instantiateScopes(MigratingScopeInstance ancestorScopeInstance, MigratingScopeInstanceBranch executionBranch, java.util.List<ScopeImpl> scopesToInstantiate)
-
migrateProcessElementInstance
protected void migrateProcessElementInstance(MigratingProcessElementInstance migratingInstance, MigratingScopeInstanceBranch migratingInstanceBranch)
-
collectNonExistingFlowScopes
protected java.util.List<ScopeImpl> collectNonExistingFlowScopes(ScopeImpl scope, MigratingScopeInstanceBranch migratingExecutionBranch)
Returns a list of flow scopes from the given scope until a scope is reached that is already present in the givenMigratingScopeInstanceBranch(exclusive). The order of the returned list is top-down, i.e. the highest scope is the first element of the list.
-
-