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 java.lang.Object implements MigratingInstance, RemovingInstance
-
-
Field Summary
Fields Modifier and Type Field Description protected JobEntity
jobEntity
protected java.util.List<MigratingInstance>
migratingDependentInstances
protected JobDefinitionEntity
targetJobDefinitionEntity
protected ScopeImpl
targetScope
-
Constructor Summary
Constructors Constructor Description MigratingJobInstance(JobEntity jobEntity)
MigratingJobInstance(JobEntity jobEntity, JobDefinitionEntity jobDefinitionEntity, ScopeImpl targetScope)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
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
detachState()
Detach this instance's state from its owning instance and the execution treeJobEntity
getJobEntity()
JobDefinitionEntity
getTargetJobDefinitionEntity()
ScopeImpl
getTargetScope()
boolean
isDetached()
void
migrateDependentEntities()
Migrate instances that are aggregated by this instance (e.g.protected abstract void
migrateJobHandlerConfiguration()
boolean
migrates()
void
migrateState()
Migrate state from the source process definition to the target process definition.void
remove()
Remove this instance from the process instance.
-
-
-
Field Detail
-
jobEntity
protected JobEntity jobEntity
-
targetJobDefinitionEntity
protected JobDefinitionEntity targetJobDefinitionEntity
-
targetScope
protected ScopeImpl targetScope
-
migratingDependentInstances
protected java.util.List<MigratingInstance> migratingDependentInstances
-
-
Constructor Detail
-
MigratingJobInstance
public MigratingJobInstance(JobEntity jobEntity, JobDefinitionEntity jobDefinitionEntity, ScopeImpl targetScope)
-
MigratingJobInstance
public MigratingJobInstance(JobEntity jobEntity)
-
-
Method Detail
-
getJobEntity
public JobEntity getJobEntity()
-
addMigratingDependentInstance
public void addMigratingDependentInstance(MigratingInstance migratingInstance)
-
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
public void attachState(MigratingScopeInstance newOwningInstance)
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
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 interfaceMigratingInstance
-
attachTo
protected void attachTo(ExecutionEntity execution)
-
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
public ScopeImpl getTargetScope()
-
getTargetJobDefinitionEntity
public JobDefinitionEntity getTargetJobDefinitionEntity()
-
migrateJobHandlerConfiguration
protected abstract void migrateJobHandlerConfiguration()
-
-