Class MigratingTransitionInstance
java.lang.Object
org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
org.camunda.bpm.engine.impl.migration.instance.MigratingTransitionInstance
- All Implemented Interfaces:
MigratingInstance
public class MigratingTransitionInstance
extends MigratingProcessElementInstance
implements MigratingInstance
- Author:
- Thorben Lindhauer
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected MigratingAsyncJobInstance
protected List<MigratingInstance>
static final MigrationLogger
protected ExecutionEntity
protected TransitionInstance
Fields inherited from class org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
currentScope, migrationInstruction, parentInstance, sourceScope, targetScope
-
Constructor Summary
ConstructorDescriptionMigratingTransitionInstance
(TransitionInstance transitionInstance, MigrationInstruction migrationInstruction, ScopeImpl sourceScope, ScopeImpl targetScope, ExecutionEntity asyncExecution) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Detach this instance's state from its owning instance and the execution treeboolean
Else asyncBeforeboolean
boolean
void
Migrate instances that are aggregated by this instance (e.g.void
Migrate state from the source process definition to the target process definition.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
-
Field Details
-
MIGRATION_LOGGER
-
representativeExecution
-
transitionInstance
-
jobInstance
-
migratingDependentInstances
-
activeState
protected boolean activeState
-
-
Constructor Details
-
MigratingTransitionInstance
public MigratingTransitionInstance(TransitionInstance transitionInstance, MigrationInstruction migrationInstruction, ScopeImpl sourceScope, ScopeImpl targetScope, ExecutionEntity asyncExecution)
-
-
Method Details
-
isDetached
public boolean isDetached()- Specified by:
isDetached
in interfaceMigratingInstance
-
getParent
- Overrides:
getParent
in classMigratingProcessElementInstance
-
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 interfaceMigratingInstance
-
attachState
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 interfaceMigratingInstance
-
resolveRepresentativeExecution
- Specified by:
resolveRepresentativeExecution
in classMigratingProcessElementInstance
-
attachState
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 interfaceMigratingInstance
-
setDependentJobInstance
-
addMigratingDependentInstance
- Specified by:
addMigratingDependentInstance
in classMigratingProcessElementInstance
-
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 interfaceMigratingInstance
-
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 interfaceMigratingInstance
-
getTransitionInstance
-
isAsyncAfter
public boolean isAsyncAfter()Else asyncBefore -
isAsyncBefore
public boolean isAsyncBefore() -
getJobInstance
-
setParent
- Specified by:
setParent
in classMigratingProcessElementInstance
-