org.camunda.bpm.engine.impl.migration.instance
Class MigratingActivityInstance
java.lang.Object
org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
org.camunda.bpm.engine.impl.migration.instance.MigratingActivityInstance
- All Implemented Interfaces:
- MigratingInstance, RemovingInstance
public class MigratingActivityInstance
- extends MigratingProcessElementInstance
- 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
activityInstance
protected ActivityInstance activityInstance
representativeExecution
protected ExecutionEntity representativeExecution
activeState
protected boolean activeState
removingDependentInstances
protected List<RemovingInstance> removingDependentInstances
migratingDependentInstances
protected List<MigratingInstance> migratingDependentInstances
emergingDependentInstances
protected List<EmergingInstance> emergingDependentInstances
childActivityInstances
protected Set<MigratingActivityInstance> childActivityInstances
childTransitionInstances
protected Set<MigratingTransitionInstance> childTransitionInstances
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.
- Specified by:
attachState in interface MigratingInstance
attachState
public void attachState(MigratingTransitionInstance targetTranisitionInstance)
- 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
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()
- Specified by:
resolveRepresentativeExecution in class MigratingProcessElementInstance
addMigratingDependentInstance
public void addMigratingDependentInstance(MigratingInstance migratingInstance)
- Specified by:
addMigratingDependentInstance in class MigratingProcessElementInstance
getMigratingDependentInstances
public List<MigratingInstance> getMigratingDependentInstances()
addRemovingDependentInstance
public void addRemovingDependentInstance(RemovingInstance removingInstance)
addEmergingDependentInstance
public void addEmergingDependentInstance(EmergingInstance emergingInstance)
addChild
public void addChild(MigratingTransitionInstance transitionInstance)
removeChild
public void removeChild(MigratingTransitionInstance transitionInstance)
addChild
public void addChild(MigratingActivityInstance activityInstance)
removeChild
public void removeChild(MigratingActivityInstance activityInstance)
getActivityInstance
public ActivityInstance getActivityInstance()
getChildren
public Set<MigratingProcessElementInstance> getChildren()
- Returns a copy of all children, modifying the returned set does not have any further effect.
- Returns:
getChildActivityInstances
public Set<MigratingActivityInstance> getChildActivityInstances()
getChildTransitionInstances
public Set<MigratingTransitionInstance> getChildTransitionInstances()
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)
setParent
public void setParent(MigratingActivityInstance parentInstance)
- Specified by:
setParent in class MigratingProcessElementInstance
Copyright © 2016 camunda services GmbH. All rights reserved.