org.camunda.bpm.engine.impl.migration.instance
Class MigratingProcessElementInstanceVisitor

java.lang.Object
  extended by org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstanceVisitor
All Implemented Interfaces:
TreeVisitor<MigratingProcessElementInstanceTopDownWalker.MigrationContext>
Direct Known Subclasses:
MigratingActivityInstanceVisitor, MigrationCompensationInstanceVisitor

public abstract class MigratingProcessElementInstanceVisitor
extends Object
implements TreeVisitor<MigratingProcessElementInstanceTopDownWalker.MigrationContext>

Author:
Thorben Lindhauer

Constructor Summary
MigratingProcessElementInstanceVisitor()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MigratingProcessElementInstanceVisitor

public MigratingProcessElementInstanceVisitor()
Method Detail

visit

public void visit(MigratingProcessElementInstanceTopDownWalker.MigrationContext obj)
Description copied from interface: TreeVisitor
Invoked for a node in tree.

Specified by:
visit in interface TreeVisitor<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,
                                          List<ScopeImpl> scopesToInstantiate)

migrateProcessElementInstance

protected void migrateProcessElementInstance(MigratingProcessElementInstance migratingInstance,
                                             MigratingScopeInstanceBranch migratingInstanceBranch)

collectNonExistingFlowScopes

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). The order of the returned list is top-down, i.e. the highest scope is the first element of the list.



Copyright © 2016 camunda services GmbH. All rights reserved.