public abstract class MigratingJobInstance extends Object implements MigratingInstance, RemovingInstance
Modifier and Type | Field and Description |
---|---|
protected JobEntity |
jobEntity |
protected List<MigratingInstance> |
migratingDependentInstances |
protected JobDefinitionEntity |
targetJobDefinitionEntity |
protected ScopeImpl |
targetScope |
Constructor and Description |
---|
MigratingJobInstance(JobEntity jobEntity) |
MigratingJobInstance(JobEntity jobEntity,
JobDefinitionEntity jobDefinitionEntity,
ScopeImpl targetScope) |
Modifier and Type | Method and 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 tree
|
JobEntity |
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.
|
protected JobEntity jobEntity
protected JobDefinitionEntity targetJobDefinitionEntity
protected ScopeImpl targetScope
protected List<MigratingInstance> migratingDependentInstances
public MigratingJobInstance(JobEntity jobEntity, JobDefinitionEntity jobDefinitionEntity, ScopeImpl targetScope)
public MigratingJobInstance(JobEntity jobEntity)
public JobEntity getJobEntity()
public void addMigratingDependentInstance(MigratingInstance migratingInstance)
public boolean isDetached()
isDetached
in interface MigratingInstance
public void detachState()
MigratingInstance
detachState
in interface MigratingInstance
public void attachState(MigratingScopeInstance newOwningInstance)
MigratingInstance
attachState
in interface MigratingInstance
public void attachState(MigratingTransitionInstance targetTransitionInstance)
MigratingInstance
attachState
in interface MigratingInstance
protected void attachTo(ExecutionEntity execution)
public void migrateState()
MigratingInstance
migrateState
in interface MigratingInstance
public void migrateDependentEntities()
MigratingInstance
migrateDependentEntities
in interface MigratingInstance
public void remove()
RemovingInstance
remove
in interface RemovingInstance
public boolean migrates()
public ScopeImpl getTargetScope()
public JobDefinitionEntity getTargetJobDefinitionEntity()
protected abstract void migrateJobHandlerConfiguration()
Copyright © 2019. All rights reserved.