Class MigratingExternalTaskInstance
- java.lang.Object
-
- org.camunda.bpm.engine.impl.migration.instance.MigratingExternalTaskInstance
-
- All Implemented Interfaces:
MigratingInstance
public class MigratingExternalTaskInstance extends java.lang.Object implements MigratingInstance
- Author:
- Thorben Lindhauer
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<MigratingInstance>dependentInstancesprotected ExternalTaskEntityexternalTaskprotected MigratingActivityInstancemigratingActivityInstancestatic MigrationLoggerMIGRATION_LOGGER
-
Constructor Summary
Constructors Constructor Description MigratingExternalTaskInstance(ExternalTaskEntity externalTask, MigratingActivityInstance migratingActivityInstance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMigratingDependentInstance(MigratingInstance migratingInstance)voidattachState(MigratingScopeInstance owningInstance)Restore this instance's state as a subordinate to the given activity instance (e.g.voidattachState(MigratingTransitionInstance targetTransitionInstance)Restore this instance's state as a subordinate to the given transition instance (e.g.voiddetachState()Detach this instance's state from its owning instance and the execution treejava.lang.StringgetId()ScopeImplgetTargetScope()booleanisDetached()voidmigrateDependentEntities()Migrate instances that are aggregated by this instance (e.g.voidmigrateState()Migrate state from the source process definition to the target process definition.
-
-
-
Field Detail
-
MIGRATION_LOGGER
public static final MigrationLogger MIGRATION_LOGGER
-
externalTask
protected ExternalTaskEntity externalTask
-
migratingActivityInstance
protected MigratingActivityInstance migratingActivityInstance
-
dependentInstances
protected java.util.List<MigratingInstance> dependentInstances
-
-
Constructor Detail
-
MigratingExternalTaskInstance
public MigratingExternalTaskInstance(ExternalTaskEntity externalTask, MigratingActivityInstance migratingActivityInstance)
-
-
Method Detail
-
migrateDependentEntities
public void migrateDependentEntities()
Description copied from interface:MigratingInstanceMigrate instances that are aggregated by this instance (e.g. an activity instance aggregates task instances).- Specified by:
migrateDependentEntitiesin interfaceMigratingInstance
-
isDetached
public boolean isDetached()
- Specified by:
isDetachedin interfaceMigratingInstance
-
detachState
public void detachState()
Description copied from interface:MigratingInstanceDetach this instance's state from its owning instance and the execution tree- Specified by:
detachStatein interfaceMigratingInstance
-
attachState
public void attachState(MigratingScopeInstance owningInstance)
Description copied from interface:MigratingInstanceRestore 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:
attachStatein interfaceMigratingInstance
-
attachState
public void attachState(MigratingTransitionInstance targetTransitionInstance)
Description copied from interface:MigratingInstanceRestore 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:
attachStatein interfaceMigratingInstance
-
migrateState
public void migrateState()
Description copied from interface:MigratingInstanceMigrate state from the source process definition to the target process definition.- Specified by:
migrateStatein interfaceMigratingInstance
-
getId
public java.lang.String getId()
-
getTargetScope
public ScopeImpl getTargetScope()
-
addMigratingDependentInstance
public void addMigratingDependentInstance(MigratingInstance migratingInstance)
-
-