Class MigratingActivityInstance
java.lang.Object
org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
org.camunda.bpm.engine.impl.migration.instance.MigratingScopeInstance
org.camunda.bpm.engine.impl.migration.instance.MigratingActivityInstance
- All Implemented Interfaces:
MigratingInstance
- Author:
- Thorben Lindhauer
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
protected class
protected class
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected ActivityInstance
protected Set<MigratingActivityInstance>
protected Set<MigratingEventScopeInstance>
protected Set<MigratingTransitionInstance>
protected List<EmergingInstance>
protected List<MigratingInstance>
static final MigrationLogger
protected List<RemovingInstance>
protected ExecutionEntity
Fields inherited from class org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
currentScope, migrationInstruction, parentInstance, sourceScope, targetScope
-
Constructor Summary
ConstructorDescriptionMigratingActivityInstance
(ScopeImpl targetScope, ExecutionEntity scopeExecution) Creates an emerged activity instanceMigratingActivityInstance
(ActivityInstance activityInstance, MigrationInstruction migrationInstruction, ScopeImpl sourceScope, ScopeImpl targetScope, ExecutionEntity scopeExecution) Creates a migrating activity instances -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(MigratingActivityInstance activityInstance) void
addChild
(MigratingCompensationEventSubscriptionInstance migratingEventSubscription) void
addChild
(MigratingEventScopeInstance compensationInstance) void
addChild
(MigratingScopeInstance migratingActivityInstance) void
addChild
(MigratingTransitionInstance transitionInstance) void
addEmergingDependentInstance
(EmergingInstance emergingInstance) void
addMigratingDependentInstance
(MigratingInstance migratingInstance) void
addRemovingDependentInstance
(RemovingInstance removingInstance) void
attachState
(MigratingScopeInstance activityInstance) 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.void
destroyAttachableExecution
(ExecutionEntity execution) void
void
void
Detach this instance's state from its owning instance and the execution treedetermineBehavior
(ScopeImpl scope) Returns a copy of all children, modifying the returned set does not have any further effect.gets those children that are itself scope instancesboolean
protected void
migrateActivityInstanceHistory
(DelegateExecution execution) void
Migrate instances that are aggregated by this instance (e.g.protected void
migrateHistory
(DelegateExecution execution) protected void
migrateProcessInstanceHistory
(DelegateExecution execution) boolean
migrates()
void
Migrate state from the source process definition to the target process definition.void
remove
(boolean skipCustomListeners, boolean skipIoMappings) removes this scope; parameters are hints and may be ignored by the implementationvoid
removeChild
(MigratingActivityInstance activityInstance) void
removeChild
(MigratingCompensationEventSubscriptionInstance migratingEventSubscription) void
removeChild
(MigratingEventScopeInstance compensationInstance) void
void
removeChild
(MigratingTransitionInstance transitionInstance) void
void
setParent
(MigratingScopeInstance parentInstance) Methods inherited from class org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
getClosestAncestorActivityInstance, getCurrentScope, getMigrationInstruction, getSourceScope, getTargetScope, migratesTo
-
Field Details
-
MIGRATION_LOGGER
-
activityInstance
-
representativeExecution
-
activeState
protected boolean activeState -
removingDependentInstances
-
migratingDependentInstances
-
emergingDependentInstances
-
childActivityInstances
-
childTransitionInstances
-
childCompensationInstances
-
childCompensationSubscriptionInstances
protected Set<MigratingCompensationEventSubscriptionInstance> childCompensationSubscriptionInstances -
instanceBehavior
-
-
Constructor Details
-
MigratingActivityInstance
public MigratingActivityInstance(ActivityInstance activityInstance, MigrationInstruction migrationInstruction, ScopeImpl sourceScope, ScopeImpl targetScope, ExecutionEntity scopeExecution) Creates a migrating activity instances -
MigratingActivityInstance
Creates an emerged activity instance
-
-
Method Details
-
determineBehavior
protected MigratingActivityInstance.MigratingActivityInstanceBehavior determineBehavior(ScopeImpl scope) -
detachChildren
public void detachChildren()- Specified by:
detachChildren
in classMigratingScopeInstance
-
detachDependentInstances
public void detachDependentInstances() -
isDetached
public boolean isDetached()- Specified by:
isDetached
in interfaceMigratingInstance
-
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 interfaceMigratingInstance
-
attachState
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 interfaceMigratingInstance
-
attachState
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 interfaceMigratingInstance
-
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 interfaceMigratingInstance
-
resolveRepresentativeExecution
- Specified by:
resolveRepresentativeExecution
in classMigratingProcessElementInstance
-
addMigratingDependentInstance
- Specified by:
addMigratingDependentInstance
in classMigratingProcessElementInstance
-
getMigratingDependentInstances
-
addRemovingDependentInstance
-
addEmergingDependentInstance
-
addChild
-
removeChild
-
addChild
-
removeChild
-
addChild
- Specified by:
addChild
in classMigratingScopeInstance
-
removeChild
- Specified by:
removeChild
in classMigratingScopeInstance
-
addChild
-
removeChild
-
addChild
- Specified by:
addChild
in classMigratingScopeInstance
-
removeChild
- Specified by:
removeChild
in classMigratingScopeInstance
-
getActivityInstance
-
getActivityInstanceId
-
getParent
- Overrides:
getParent
in classMigratingProcessElementInstance
-
getChildren
Returns a copy of all children, modifying the returned set does not have any further effect.- Specified by:
getChildren
in classMigratingScopeInstance
-
getChildScopeInstances
Description copied from class:MigratingScopeInstance
gets those children that are itself scope instances- Specified by:
getChildScopeInstances
in classMigratingScopeInstance
-
getChildActivityInstances
-
getChildTransitionInstances
-
getChildCompensationInstances
-
migrates
public boolean migrates()- Specified by:
migrates
in classMigratingScopeInstance
-
removeUnmappedDependentInstances
public void removeUnmappedDependentInstances()- Specified by:
removeUnmappedDependentInstances
in classMigratingScopeInstance
-
remove
public void remove(boolean skipCustomListeners, boolean skipIoMappings) Description copied from class:MigratingScopeInstance
removes this scope; parameters are hints and may be ignored by the implementation- Specified by:
remove
in classMigratingScopeInstance
-
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 interfaceMigratingInstance
-
migrateHistory
-
migrateProcessInstanceHistory
-
migrateActivityInstanceHistory
-
createAttachableExecution
-
destroyAttachableExecution
-
setParent
- Specified by:
setParent
in classMigratingProcessElementInstance
-