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
FieldsModifier and TypeFieldDescriptionprotected JobEntityprotected List<MigratingInstance>protected JobDefinitionEntityprotected ScopeImpl -
Constructor Summary
ConstructorsConstructorDescriptionMigratingJobInstance(JobEntity jobEntity) MigratingJobInstance(JobEntity jobEntity, JobDefinitionEntity jobDefinitionEntity, ScopeImpl targetScope) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMigratingDependentInstance(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) voidDetach this instance's state from its owning instance and the execution treebooleanvoidMigrate instances that are aggregated by this instance (e.g.protected abstract voidbooleanmigrates()voidMigrate state from the source process definition to the target process definition.voidremove()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:
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
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
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
-
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
-
getTargetJobDefinitionEntity
-
migrateJobHandlerConfiguration
protected abstract void migrateJobHandlerConfiguration()
-