Class MigratingJobInstance
java.lang.Object
org.camunda.bpm.engine.impl.migration.instance.MigratingJobInstance
- All Implemented Interfaces:
MigratingInstance
,RemovingInstance
- Direct Known Subclasses:
MigratingAsyncJobInstance
,MigratingTimerJobInstance
public abstract class MigratingJobInstance
extends Object
implements MigratingInstance, RemovingInstance
-
Field Summary
Modifier and TypeFieldDescriptionprotected JobEntity
protected List<MigratingInstance>
protected JobDefinitionEntity
protected ScopeImpl
-
Constructor Summary
ConstructorDescriptionMigratingJobInstance
(JobEntity jobEntity) MigratingJobInstance
(JobEntity jobEntity, JobDefinitionEntity jobDefinitionEntity, ScopeImpl targetScope) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMigratingDependentInstance
(MigratingInstance migratingInstance) void
attachState
(MigratingScopeInstance newOwningInstance) 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.protected void
attachTo
(ExecutionEntity execution) void
Detach this instance's state from its owning instance and the execution treeboolean
void
Migrate instances that are aggregated by this instance (e.g.protected abstract void
boolean
migrates()
void
Migrate state from the source process definition to the target process definition.void
remove()
Remove this instance from the process instance.
-
Field Details
-
jobEntity
-
targetJobDefinitionEntity
-
targetScope
-
migratingDependentInstances
-
-
Constructor Details
-
MigratingJobInstance
public MigratingJobInstance(JobEntity jobEntity, JobDefinitionEntity jobDefinitionEntity, ScopeImpl targetScope) -
MigratingJobInstance
-
-
Method Details
-
getJobEntity
-
addMigratingDependentInstance
-
isDetached
public boolean isDetached()- Specified by:
isDetached
in interfaceMigratingInstance
-
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
-
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
-
attachTo
-
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
-
remove
public void remove()Description copied from interface:RemovingInstance
Remove this instance from the process instance.- Specified by:
remove
in interfaceRemovingInstance
-
migrates
public boolean migrates() -
getTargetScope
-
getTargetJobDefinitionEntity
-
migrateJobHandlerConfiguration
protected abstract void migrateJobHandlerConfiguration()
-