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

java.lang.Object
  extended by org.camunda.bpm.engine.impl.migration.instance.MigratingTimerJobInstance
All Implemented Interfaces:
EmergingInstance, MigratingInstance, RemovingInstance

public class MigratingTimerJobInstance
extends Object
implements MigratingInstance, RemovingInstance, EmergingInstance


Field Summary
protected  JobEntity jobEntity
           
protected  List<MigratingInstance> migratingDependentInstances
           
protected  JobDefinitionEntity targetJobDefinitionEntity
           
protected  ScopeImpl targetScope
           
protected  TimerDeclarationImpl timerDeclaration
           
 
Constructor Summary
MigratingTimerJobInstance(JobEntity jobEntity)
           
MigratingTimerJobInstance(JobEntity jobEntity, JobDefinitionEntity jobDefinitionEntity, ScopeImpl targetScope)
           
MigratingTimerJobInstance(TimerDeclarationImpl timerDeclaration)
           
 
Method Summary
 void addMigratingDependentInstance(MigratingInstance migratingInstance)
           
 void attachState(ExecutionEntity newScopeExecution)
          Restore this instance's state to the execution tree.
 void create(ExecutionEntity scopeExecution)
          Creates this instance and attachs it to the given execution.
 void detachState()
          Detach this instance's state from the execution tree
 void migrateDependentEntities()
          Migrate instances that are aggregated by this instance (e.g.
 void migrateState()
          Migrate state from the source process definition to the target process definition.
 void remove()
          Remove this instance from the process instance.
protected  void updateJobConfiguration(String activityId)
           
 
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

timerDeclaration

protected TimerDeclarationImpl timerDeclaration

migratingDependentInstances

protected List<MigratingInstance> migratingDependentInstances
Constructor Detail

MigratingTimerJobInstance

public MigratingTimerJobInstance(JobEntity jobEntity,
                                 JobDefinitionEntity jobDefinitionEntity,
                                 ScopeImpl targetScope)

MigratingTimerJobInstance

public MigratingTimerJobInstance(JobEntity jobEntity)

MigratingTimerJobInstance

public MigratingTimerJobInstance(TimerDeclarationImpl timerDeclaration)
Method Detail

addMigratingDependentInstance

public void addMigratingDependentInstance(MigratingInstance migratingInstance)

detachState

public void detachState()
Description copied from interface: MigratingInstance
Detach this instance's state from the execution tree

Specified by:
detachState in interface MigratingInstance

attachState

public void attachState(ExecutionEntity newScopeExecution)
Description copied from interface: MigratingInstance
Restore this instance's state to the execution tree. Restoration should restore the state that was detached before (i.e. the source process definition state)

Specified by:
attachState in interface MigratingInstance

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

create

public void create(ExecutionEntity scopeExecution)
Description copied from interface: EmergingInstance
Creates this instance and attachs it to the given execution.

Specified by:
create in interface EmergingInstance
Parameters:
scopeExecution - the execution to attach the new instance

remove

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

Specified by:
remove in interface RemovingInstance

updateJobConfiguration

protected void updateJobConfiguration(String activityId)


Copyright © 2016 camunda services GmbH. All rights reserved.