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 JobEntityjobEntityprotected java.util.List<MigratingInstance>migratingDependentInstancesprotected JobDefinitionEntitytargetJobDefinitionEntityprotected ScopeImpltargetScope
-
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 voidaddMigratingDependentInstance(MigratingInstance migratingInstance)voidattachState(MigratingScopeInstance newOwningInstance)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.protected voidattachTo(ExecutionEntity execution)voiddetachState()Detach this instance's state from its owning instance and the execution treeJobEntitygetJobEntity()JobDefinitionEntitygetTargetJobDefinitionEntity()ScopeImplgetTargetScope()booleanisDetached()voidmigrateDependentEntities()Migrate instances that are aggregated by this instance (e.g.protected abstract voidmigrateJobHandlerConfiguration()booleanmigrates()voidmigrateState()Migrate state from the source process definition to the target process definition.voidremove()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:
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 newOwningInstance)
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
-
attachTo
protected void attachTo(ExecutionEntity execution)
-
migrateState
public void migrateState()
Description copied from interface:MigratingInstanceMigrate state from the source process definition to the target process definition.- Specified by:
migrateStatein interfaceMigratingInstance
-
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
-
remove
public void remove()
Description copied from interface:RemovingInstanceRemove this instance from the process instance.- Specified by:
removein interfaceRemovingInstance
-
migrates
public boolean migrates()
-
getTargetScope
public ScopeImpl getTargetScope()
-
getTargetJobDefinitionEntity
public JobDefinitionEntity getTargetJobDefinitionEntity()
-
migrateJobHandlerConfiguration
protected abstract void migrateJobHandlerConfiguration()
-
-