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
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceprotected classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected ActivityInstanceprotected Set<MigratingActivityInstance>protected Set<MigratingEventScopeInstance>protected Set<MigratingTransitionInstance>protected List<EmergingInstance>protected List<MigratingInstance>static final MigrationLoggerprotected List<RemovingInstance>protected ExecutionEntityFields inherited from class org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
currentScope, migrationInstruction, parentInstance, sourceScope, targetScope -
Constructor Summary
ConstructorsConstructorDescriptionMigratingActivityInstance(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 TypeMethodDescriptionvoidaddChild(MigratingActivityInstance activityInstance) voidaddChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription) voidaddChild(MigratingEventScopeInstance compensationInstance) voidaddChild(MigratingScopeInstance migratingActivityInstance) voidaddChild(MigratingTransitionInstance transitionInstance) voidaddEmergingDependentInstance(EmergingInstance emergingInstance) voidaddMigratingDependentInstance(MigratingInstance migratingInstance) voidaddRemovingDependentInstance(RemovingInstance removingInstance) voidattachState(MigratingScopeInstance activityInstance) Restore this instance's state as a subordinate to the given activity instance (e.g.voidattachState(MigratingTransitionInstance targetTransitionInstance) Restore this instance's state as a subordinate to the given transition instance (e.g.voiddestroyAttachableExecution(ExecutionEntity execution) voidvoidvoidDetach 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 instancesbooleanprotected voidmigrateActivityInstanceHistory(DelegateExecution execution) voidMigrate instances that are aggregated by this instance (e.g.protected voidmigrateHistory(DelegateExecution execution) protected voidmigrateProcessInstanceHistory(DelegateExecution execution) booleanmigrates()voidMigrate state from the source process definition to the target process definition.voidremove(boolean skipCustomListeners, boolean skipIoMappings) removes this scope; parameters are hints and may be ignored by the implementationvoidremoveChild(MigratingActivityInstance activityInstance) voidremoveChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription) voidremoveChild(MigratingEventScopeInstance compensationInstance) voidvoidremoveChild(MigratingTransitionInstance transitionInstance) voidvoidsetParent(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:
detachChildrenin classMigratingScopeInstance
-
detachDependentInstances
public void detachDependentInstances() -
isDetached
public boolean isDetached()- Specified by:
isDetachedin interfaceMigratingInstance
-
detachState
public void detachState()Description copied from interface:MigratingInstanceDetach this instance's state from its owning instance and the execution tree- Specified by:
detachStatein interfaceMigratingInstance
-
attachState
Description copied from interface:MigratingInstanceRestore 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:
attachStatein interfaceMigratingInstance
-
attachState
Description copied from interface:MigratingInstanceRestore 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:
attachStatein interfaceMigratingInstance
-
migrateDependentEntities
public void migrateDependentEntities()Description copied from interface:MigratingInstanceMigrate instances that are aggregated by this instance (e.g. an activity instance aggregates task instances).- Specified by:
migrateDependentEntitiesin interfaceMigratingInstance
-
resolveRepresentativeExecution
- Specified by:
resolveRepresentativeExecutionin classMigratingProcessElementInstance
-
addMigratingDependentInstance
- Specified by:
addMigratingDependentInstancein classMigratingProcessElementInstance
-
getMigratingDependentInstances
-
addRemovingDependentInstance
-
addEmergingDependentInstance
-
addChild
-
removeChild
-
addChild
-
removeChild
-
addChild
- Specified by:
addChildin classMigratingScopeInstance
-
removeChild
- Specified by:
removeChildin classMigratingScopeInstance
-
addChild
-
removeChild
-
addChild
- Specified by:
addChildin classMigratingScopeInstance
-
removeChild
- Specified by:
removeChildin classMigratingScopeInstance
-
getActivityInstance
-
getActivityInstanceId
-
getParent
- Overrides:
getParentin classMigratingProcessElementInstance
-
getChildren
Returns a copy of all children, modifying the returned set does not have any further effect.- Specified by:
getChildrenin classMigratingScopeInstance
-
getChildScopeInstances
Description copied from class:MigratingScopeInstancegets those children that are itself scope instances- Specified by:
getChildScopeInstancesin classMigratingScopeInstance
-
getChildActivityInstances
-
getChildTransitionInstances
-
getChildCompensationInstances
-
migrates
public boolean migrates()- Specified by:
migratesin classMigratingScopeInstance
-
removeUnmappedDependentInstances
public void removeUnmappedDependentInstances()- Specified by:
removeUnmappedDependentInstancesin classMigratingScopeInstance
-
remove
public void remove(boolean skipCustomListeners, boolean skipIoMappings) Description copied from class:MigratingScopeInstanceremoves this scope; parameters are hints and may be ignored by the implementation- Specified by:
removein classMigratingScopeInstance
-
migrateState
public void migrateState()Description copied from interface:MigratingInstanceMigrate state from the source process definition to the target process definition.- Specified by:
migrateStatein interfaceMigratingInstance
-
migrateHistory
-
migrateProcessInstanceHistory
-
migrateActivityInstanceHistory
-
createAttachableExecution
-
destroyAttachableExecution
-
setParent
- Specified by:
setParentin classMigratingProcessElementInstance
-