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

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

public class MigratingExternalTaskInstance
extends Object
implements MigratingInstance

Author:
Thorben Lindhauer

Field Summary
protected  List<MigratingInstance> dependentInstances
           
protected  ExternalTaskEntity externalTask
           
protected  MigratingActivityInstance migratingActivityInstance
           
static MigrationLogger MIGRATION_LOGGER
           
 
Constructor Summary
MigratingExternalTaskInstance(ExternalTaskEntity externalTask, MigratingActivityInstance migratingActivityInstance)
           
 
Method Summary
 void addMigratingDependentInstance(MigratingInstance migratingInstance)
           
 void attachState(MigratingActivityInstance owningInstance)
          Restore this instance's state as a subordinate to the given activity instance (e.g.
 void attachState(MigratingTransitionInstance targetTranisitionInstance)
          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
 String getId()
           
 ScopeImpl getTargetScope()
           
 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.
 
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

externalTask

protected ExternalTaskEntity externalTask

migratingActivityInstance

protected MigratingActivityInstance migratingActivityInstance

dependentInstances

protected List<MigratingInstance> dependentInstances
Constructor Detail

MigratingExternalTaskInstance

public MigratingExternalTaskInstance(ExternalTaskEntity externalTask,
                                     MigratingActivityInstance migratingActivityInstance)
Method Detail

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

isDetached

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

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(MigratingActivityInstance owningInstance)
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

attachState

public void attachState(MigratingTransitionInstance targetTranisitionInstance)
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

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

getId

public String getId()

getTargetScope

public ScopeImpl getTargetScope()

addMigratingDependentInstance

public void addMigratingDependentInstance(MigratingInstance migratingInstance)


Copyright © 2016 camunda services GmbH. All rights reserved.