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

java.lang.Object
  extended by org.camunda.bpm.engine.impl.migration.instance.MigratingActivityInstance
All Implemented Interfaces:
MigratingInstance, RemovingInstance

public class MigratingActivityInstance
extends Object
implements MigratingInstance, RemovingInstance

Author:
Thorben Lindhauer

Nested Class Summary
protected static interface MigratingActivityInstance.MigratingActivityInstanceBehavior
           
protected  class MigratingActivityInstance.MigratingNonScopeActivityInstanceBehavior
           
protected  class MigratingActivityInstance.MigratingScopeActivityInstanceBehavior
           
 
Field Summary
protected  ActivityInstance activityInstance
           
protected  Set<MigratingActivityInstance> childInstances
           
protected  List<EmergingInstance> emergingDependentInstances
           
protected  MigratingActivityInstance.MigratingActivityInstanceBehavior instanceBehavior
           
protected  List<MigratingInstance> migratingDependentInstances
           
protected  MigrationInstruction migrationInstruction
           
protected  MigratingActivityInstance parentInstance
           
protected  List<RemovingInstance> removingDependentInstances
           
protected  ExecutionEntity representativeExecution
           
protected  ScopeImpl sourceScope
           
protected  ScopeImpl targetScope
           
 
Constructor Summary
MigratingActivityInstance(ActivityInstance activityInstance, MigrationInstruction migrationInstruction, ScopeImpl sourceScope, ScopeImpl targetScope, ExecutionEntity scopeExecution)
           
 
Method Summary
 void addEmergingDependentInstance(EmergingInstance emergingInstance)
           
 void addMigratingDependentInstance(MigratingInstance migratingInstance)
           
 void addRemovingDependentInstance(RemovingInstance removingInstance)
           
 void attachState(ExecutionEntity newScopeExecution)
          Restore this instance's state to the execution tree.
 void detachState()
          Detach this instance's state from the execution tree
 ActivityInstance getActivityInstance()
           
 Set<MigratingActivityInstance> getChildren()
           
 MigrationInstruction getMigrationInstruction()
           
 MigratingActivityInstance getParent()
           
 ScopeImpl getSourceScope()
           
 ScopeImpl getTargetScope()
           
 void migrateDependentEntities()
          Migrate instances that are aggregated by this instance (e.g.
 boolean migrates()
           
 void migrateState()
          Migrate state from the source process definition to the target process definition.
 void remove()
          Remove this instance from the process instance.
 void removeUnmappedDependentInstances()
           
 ExecutionEntity resolveRepresentativeExecution()
           
 void setParent(MigratingActivityInstance parentInstance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

migrationInstruction

protected MigrationInstruction migrationInstruction

activityInstance

protected ActivityInstance activityInstance

representativeExecution

protected ExecutionEntity representativeExecution

removingDependentInstances

protected List<RemovingInstance> removingDependentInstances

migratingDependentInstances

protected List<MigratingInstance> migratingDependentInstances

emergingDependentInstances

protected List<EmergingInstance> emergingDependentInstances

sourceScope

protected ScopeImpl sourceScope

targetScope

protected ScopeImpl targetScope

childInstances

protected Set<MigratingActivityInstance> childInstances

parentInstance

protected MigratingActivityInstance parentInstance

instanceBehavior

protected MigratingActivityInstance.MigratingActivityInstanceBehavior instanceBehavior
Constructor Detail

MigratingActivityInstance

public MigratingActivityInstance(ActivityInstance activityInstance,
                                 MigrationInstruction migrationInstruction,
                                 ScopeImpl sourceScope,
                                 ScopeImpl targetScope,
                                 ExecutionEntity scopeExecution)
Method Detail

detachState

public void detachState()
Description copied from interface: MigratingInstance
Detach this instance's state from the execution tree

Specified by:
detachState in interface MigratingInstance

attachState

public void attachState(ExecutionEntity newScopeExecution)
Description copied from interface: MigratingInstance
Restore this instance's state to the execution tree. Restoration should restore the state that was detached before (i.e. the source process definition state)

Specified by:
attachState in interface MigratingInstance

migrateDependentEntities

public void migrateDependentEntities()
Description copied from interface: MigratingInstance
Migrate instances that are aggregated by this instance (e.g. an activity instance aggregates task instances).

Specified by:
migrateDependentEntities in interface MigratingInstance

resolveRepresentativeExecution

public ExecutionEntity resolveRepresentativeExecution()

addMigratingDependentInstance

public void addMigratingDependentInstance(MigratingInstance migratingInstance)

addRemovingDependentInstance

public void addRemovingDependentInstance(RemovingInstance removingInstance)

addEmergingDependentInstance

public void addEmergingDependentInstance(EmergingInstance emergingInstance)

getActivityInstance

public ActivityInstance getActivityInstance()

getSourceScope

public ScopeImpl getSourceScope()

getTargetScope

public ScopeImpl getTargetScope()

getChildren

public Set<MigratingActivityInstance> getChildren()

getParent

public MigratingActivityInstance getParent()

setParent

public void setParent(MigratingActivityInstance parentInstance)

getMigrationInstruction

public MigrationInstruction getMigrationInstruction()

migrates

public boolean migrates()

removeUnmappedDependentInstances

public void removeUnmappedDependentInstances()

remove

public void remove()
Description copied from interface: RemovingInstance
Remove this instance from the process instance.

Specified by:
remove in interface RemovingInstance

migrateState

public void migrateState()
Description copied from interface: MigratingInstance
Migrate state from the source process definition to the target process definition.

Specified by:
migrateState in interface MigratingInstance


Copyright © 2016 camunda services GmbH. All rights reserved.