public abstract class MigratingProcessElementInstanceVisitor extends Object implements TreeVisitor<MigratingProcessElementInstanceTopDownWalker.MigrationContext>
Constructor and Description |
---|
MigratingProcessElementInstanceVisitor() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
canMigrate(MigratingProcessElementInstance instance) |
protected 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 given
MigratingScopeInstanceBranch (exclusive). |
protected abstract void |
instantiateScopes(MigratingScopeInstance ancestorScopeInstance,
MigratingScopeInstanceBranch executionBranch,
List<ScopeImpl> scopesToInstantiate) |
protected void |
migrateProcessElementInstance(MigratingProcessElementInstance migratingInstance,
MigratingScopeInstanceBranch migratingInstanceBranch) |
void |
visit(MigratingProcessElementInstanceTopDownWalker.MigrationContext obj)
Invoked for a node in tree.
|
public MigratingProcessElementInstanceVisitor()
public void visit(MigratingProcessElementInstanceTopDownWalker.MigrationContext obj)
TreeVisitor
visit
in interface TreeVisitor<MigratingProcessElementInstanceTopDownWalker.MigrationContext>
obj
- a reference to the nodeprotected abstract boolean canMigrate(MigratingProcessElementInstance instance)
protected abstract void instantiateScopes(MigratingScopeInstance ancestorScopeInstance, MigratingScopeInstanceBranch executionBranch, List<ScopeImpl> scopesToInstantiate)
protected void migrateProcessElementInstance(MigratingProcessElementInstance migratingInstance, MigratingScopeInstanceBranch migratingInstanceBranch)
protected List<ScopeImpl> collectNonExistingFlowScopes(ScopeImpl scope, MigratingScopeInstanceBranch migratingExecutionBranch)
MigratingScopeInstanceBranch
(exclusive). The order of the returned list is top-down, i.e. the highest scope
is the first element of the list.Copyright © 2017. All rights reserved.