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

java.lang.Object
  extended by org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
      extended by org.camunda.bpm.engine.impl.migration.instance.MigratingTransitionInstance
All Implemented Interfaces:
MigratingInstance

public class MigratingTransitionInstance
extends MigratingProcessElementInstance
implements MigratingInstance

Author:
Thorben Lindhauer

Field Summary
protected  boolean activeState
           
protected  MigratingAsyncJobInstance jobInstance
           
protected  List<MigratingInstance> migratingDependentInstances
           
static MigrationLogger MIGRATION_LOGGER
           
protected  ExecutionEntity representativeExecution
           
protected  TransitionInstance transitionInstance
           
 
Fields inherited from class org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
currentScope, migrationInstruction, parentInstance, sourceScope, targetScope
 
Constructor Summary
MigratingTransitionInstance(TransitionInstance transitionInstance, MigrationInstruction migrationInstruction, ScopeImpl sourceScope, ScopeImpl targetScope, ExecutionEntity asyncExecution)
           
 
Method Summary
 void addMigratingDependentInstance(MigratingInstance migratingInstance)
           
 void attachState(MigratingScopeInstance scopeInstance)
          Restore this instance's state as a subordinate to the given activity instance (e.g.
 void attachState(MigratingTransitionInstance targetTransitionInstance)
          Restore this instance's state as a subordinate to the given transition instance (e.g.
 void detachState()
          Detach this instance's state from its owning instance and the execution tree
 MigratingJobInstance getJobInstance()
           
 List<MigratingInstance> getMigratingDependentInstances()
           
 MigratingActivityInstance getParent()
           
 TransitionInstance getTransitionInstance()
           
 boolean isAsyncAfter()
          Else asyncBefore
 boolean isAsyncBefore()
           
 boolean isDetached()
           
 void migrateDependentEntities()
          Migrate instances that are aggregated by this instance (e.g.
 void migrateState()
          Migrate state from the source process definition to the target process definition.
 ExecutionEntity resolveRepresentativeExecution()
           
 void setDependentJobInstance(MigratingAsyncJobInstance jobInstance)
           
 void setParent(MigratingScopeInstance parentInstance)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
getClosestAncestorActivityInstance, getCurrentScope, getMigrationInstruction, getSourceScope, getTargetScope, migratesTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIGRATION_LOGGER

public static final MigrationLogger MIGRATION_LOGGER

representativeExecution

protected ExecutionEntity representativeExecution

transitionInstance

protected TransitionInstance transitionInstance

jobInstance

protected MigratingAsyncJobInstance jobInstance

migratingDependentInstances

protected List<MigratingInstance> migratingDependentInstances

activeState

protected boolean activeState
Constructor Detail

MigratingTransitionInstance

public MigratingTransitionInstance(TransitionInstance transitionInstance,
                                   MigrationInstruction migrationInstruction,
                                   ScopeImpl sourceScope,
                                   ScopeImpl targetScope,
                                   ExecutionEntity asyncExecution)
Method Detail

isDetached

public boolean isDetached()
Specified by:
isDetached in interface MigratingInstance

getParent

public MigratingActivityInstance getParent()
Overrides:
getParent in class MigratingProcessElementInstance

detachState

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

Specified by:
detachState in interface MigratingInstance

attachState

public void attachState(MigratingScopeInstance scopeInstance)
Description copied from interface: MigratingInstance
Restore this instance's state as a subordinate to the given activity instance (e.g. in the execution tree). Restoration should restore the state that was detached before.

Specified by:
attachState in interface MigratingInstance

resolveRepresentativeExecution

public ExecutionEntity resolveRepresentativeExecution()
Specified by:
resolveRepresentativeExecution in class MigratingProcessElementInstance

attachState

public void attachState(MigratingTransitionInstance targetTransitionInstance)
Description copied from interface: MigratingInstance
Restore this instance's state as a subordinate to the given transition instance (e.g. in the execution tree). Restoration should restore the state that was detached before.

Specified by:
attachState in interface MigratingInstance

setDependentJobInstance

public void setDependentJobInstance(MigratingAsyncJobInstance jobInstance)

addMigratingDependentInstance

public void addMigratingDependentInstance(MigratingInstance migratingInstance)
Specified by:
addMigratingDependentInstance in class MigratingProcessElementInstance

getMigratingDependentInstances

public List<MigratingInstance> getMigratingDependentInstances()

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

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

getTransitionInstance

public TransitionInstance getTransitionInstance()

isAsyncAfter

public boolean isAsyncAfter()
Else asyncBefore


isAsyncBefore

public boolean isAsyncBefore()

getJobInstance

public MigratingJobInstance getJobInstance()

setParent

public void setParent(MigratingScopeInstance parentInstance)
Specified by:
setParent in class MigratingProcessElementInstance


Copyright © 2016 camunda services GmbH. All rights reserved.