org.camunda.bpm.engine.impl.migration.instance
Class MigratingActivityInstance
java.lang.Object
org.camunda.bpm.engine.impl.migration.instance.MigratingActivityInstance
- All Implemented Interfaces:
- MigratingInstance, RemovingInstance
public class MigratingActivityInstance
- extends Object
- implements MigratingInstance, RemovingInstance
- Author:
- Thorben Lindhauer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MIGRATION_LOGGER
public static final MigrationLogger MIGRATION_LOGGER
migrationInstruction
protected MigrationInstruction migrationInstruction
activityInstance
protected ActivityInstance activityInstance
representativeExecution
protected ExecutionEntity representativeExecution
removingDependentInstances
protected List<RemovingInstance> removingDependentInstances
migratingDependentInstances
protected List<MigratingInstance> migratingDependentInstances
emergingDependentInstances
protected List<EmergingInstance> emergingDependentInstances
sourceScope
protected ScopeImpl sourceScope
targetScope
protected ScopeImpl targetScope
currentScope
protected ScopeImpl currentScope
childInstances
protected Set<MigratingActivityInstance> childInstances
parentInstance
protected MigratingActivityInstance parentInstance
instanceBehavior
protected MigratingActivityInstance.MigratingActivityInstanceBehavior instanceBehavior
MigratingActivityInstance
public MigratingActivityInstance(ActivityInstance activityInstance,
MigrationInstruction migrationInstruction,
ScopeImpl sourceScope,
ScopeImpl targetScope,
ExecutionEntity scopeExecution)
- Creates a migrating activity instances
MigratingActivityInstance
public MigratingActivityInstance(ScopeImpl targetScope,
ExecutionEntity scopeExecution)
- Creates an emerged activity instance
determineBehavior
protected MigratingActivityInstance.MigratingActivityInstanceBehavior determineBehavior(ScopeImpl scope)
detachChildren
public void detachChildren()
detachDependentInstances
public void detachDependentInstances()
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(MigratingActivityInstance activityInstance)
- 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 (i.e. the source process definition state)
- Specified by:
attachState 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
resolveRepresentativeExecution
public ExecutionEntity resolveRepresentativeExecution()
addMigratingDependentInstance
public void addMigratingDependentInstance(MigratingInstance migratingInstance)
getMigratingDependentInstances
public List<MigratingInstance> getMigratingDependentInstances()
addRemovingDependentInstance
public void addRemovingDependentInstance(RemovingInstance removingInstance)
addEmergingDependentInstance
public void addEmergingDependentInstance(EmergingInstance emergingInstance)
getActivityInstance
public ActivityInstance getActivityInstance()
getSourceScope
public ScopeImpl getSourceScope()
getTargetScope
public ScopeImpl getTargetScope()
getCurrentScope
public ScopeImpl getCurrentScope()
getChildren
public Set<MigratingActivityInstance> getChildren()
getParent
public MigratingActivityInstance getParent()
setParent
public void setParent(MigratingActivityInstance parentInstance)
getMigrationInstruction
public MigrationInstruction getMigrationInstruction()
migrates
public boolean migrates()
removeUnmappedDependentInstances
public void removeUnmappedDependentInstances()
remove
public void remove()
- Description copied from interface:
RemovingInstance
- Remove this instance from the process instance.
- Specified by:
remove in interface RemovingInstance
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
createAttachableExecution
public ExecutionEntity createAttachableExecution()
destroyAttachableExecution
public void destroyAttachableExecution(ExecutionEntity execution)
Copyright © 2016 camunda services GmbH. All rights reserved.