org.camunda.bpm.engine.impl.migration.instance
Class MigratingJobInstance

java.lang.Object
  extended by 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
protected  JobEntity jobEntity
           
protected  List<MigratingInstance> migratingDependentInstances
           
protected  JobDefinitionEntity targetJobDefinitionEntity
           
protected  ScopeImpl targetScope
           
 
Constructor Summary
MigratingJobInstance(JobEntity jobEntity)
           
MigratingJobInstance(JobEntity jobEntity, JobDefinitionEntity jobDefinitionEntity, ScopeImpl targetScope)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jobEntity

protected JobEntity jobEntity

targetJobDefinitionEntity

protected JobDefinitionEntity targetJobDefinitionEntity

targetScope

protected ScopeImpl targetScope

migratingDependentInstances

protected 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 interface MigratingInstance

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 interface MigratingInstance

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 interface MigratingInstance

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 interface MigratingInstance

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 interface MigratingInstance

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 interface MigratingInstance

remove

public void remove()
Description copied from interface: RemovingInstance
Remove this instance from the process instance.

Specified by:
remove in interface RemovingInstance

migrates

public boolean migrates()

getTargetScope

public ScopeImpl getTargetScope()

getTargetJobDefinitionEntity

public JobDefinitionEntity getTargetJobDefinitionEntity()

migrateJobHandlerConfiguration

protected abstract void migrateJobHandlerConfiguration()


Copyright © 2017 camunda services GmbH. All rights reserved.