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
public class MigratingActivityInstance extends MigratingScopeInstance implements MigratingInstance
- Author:
- Thorben Lindhauer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
MigratingActivityInstance.MigratingActivityInstanceBehavior
protected class
MigratingActivityInstance.MigratingNonScopeActivityInstanceBehavior
protected class
MigratingActivityInstance.MigratingScopeActivityInstanceBehavior
-
Field Summary
Fields Modifier and Type Field Description protected boolean
activeState
protected ActivityInstance
activityInstance
protected java.util.Set<MigratingActivityInstance>
childActivityInstances
protected java.util.Set<MigratingEventScopeInstance>
childCompensationInstances
protected java.util.Set<MigratingCompensationEventSubscriptionInstance>
childCompensationSubscriptionInstances
protected java.util.Set<MigratingTransitionInstance>
childTransitionInstances
protected java.util.List<EmergingInstance>
emergingDependentInstances
protected MigratingActivityInstance.MigratingActivityInstanceBehavior
instanceBehavior
protected java.util.List<MigratingInstance>
migratingDependentInstances
static MigrationLogger
MIGRATION_LOGGER
protected java.util.List<RemovingInstance>
removingDependentInstances
protected ExecutionEntity
representativeExecution
-
Fields inherited from class org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
currentScope, migrationInstruction, parentInstance, sourceScope, targetScope
-
-
Constructor Summary
Constructors Constructor Description MigratingActivityInstance(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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.ExecutionEntity
createAttachableExecution()
void
destroyAttachableExecution(ExecutionEntity execution)
void
detachChildren()
void
detachDependentInstances()
void
detachState()
Detach this instance's state from its owning instance and the execution treeprotected MigratingActivityInstance.MigratingActivityInstanceBehavior
determineBehavior(ScopeImpl scope)
ActivityInstance
getActivityInstance()
java.lang.String
getActivityInstanceId()
java.util.Set<MigratingActivityInstance>
getChildActivityInstances()
java.util.Set<MigratingEventScopeInstance>
getChildCompensationInstances()
java.util.Set<MigratingProcessElementInstance>
getChildren()
Returns a copy of all children, modifying the returned set does not have any further effect.java.util.Collection<MigratingScopeInstance>
getChildScopeInstances()
gets those children that are itself scope instancesjava.util.Set<MigratingTransitionInstance>
getChildTransitionInstances()
java.util.List<MigratingInstance>
getMigratingDependentInstances()
MigratingActivityInstance
getParent()
boolean
isDetached()
protected void
migrateActivityInstanceHistory(DelegateExecution execution)
void
migrateDependentEntities()
Migrate instances that are aggregated by this instance (e.g.protected void
migrateHistory(DelegateExecution execution)
protected void
migrateProcessInstanceHistory(DelegateExecution execution)
boolean
migrates()
void
migrateState()
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
removeChild(MigratingScopeInstance child)
void
removeChild(MigratingTransitionInstance transitionInstance)
void
removeUnmappedDependentInstances()
ExecutionEntity
resolveRepresentativeExecution()
void
setParent(MigratingScopeInstance parentInstance)
-
Methods inherited from class org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
getClosestAncestorActivityInstance, getCurrentScope, getMigrationInstruction, getSourceScope, getTargetScope, migratesTo
-
-
-
-
Field Detail
-
MIGRATION_LOGGER
public static final MigrationLogger MIGRATION_LOGGER
-
activityInstance
protected ActivityInstance activityInstance
-
representativeExecution
protected ExecutionEntity representativeExecution
-
activeState
protected boolean activeState
-
removingDependentInstances
protected java.util.List<RemovingInstance> removingDependentInstances
-
migratingDependentInstances
protected java.util.List<MigratingInstance> migratingDependentInstances
-
emergingDependentInstances
protected java.util.List<EmergingInstance> emergingDependentInstances
-
childActivityInstances
protected java.util.Set<MigratingActivityInstance> childActivityInstances
-
childTransitionInstances
protected java.util.Set<MigratingTransitionInstance> childTransitionInstances
-
childCompensationInstances
protected java.util.Set<MigratingEventScopeInstance> childCompensationInstances
-
childCompensationSubscriptionInstances
protected java.util.Set<MigratingCompensationEventSubscriptionInstance> childCompensationSubscriptionInstances
-
instanceBehavior
protected MigratingActivityInstance.MigratingActivityInstanceBehavior instanceBehavior
-
-
Constructor Detail
-
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
-
-
Method Detail
-
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
public void attachState(MigratingScopeInstance 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 interfaceMigratingInstance
-
attachState
public void attachState(MigratingTransitionInstance targetTransitionInstance)
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
public ExecutionEntity resolveRepresentativeExecution()
- Specified by:
resolveRepresentativeExecution
in classMigratingProcessElementInstance
-
addMigratingDependentInstance
public void addMigratingDependentInstance(MigratingInstance migratingInstance)
- Specified by:
addMigratingDependentInstance
in classMigratingProcessElementInstance
-
getMigratingDependentInstances
public java.util.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)
-
addChild
public void addChild(MigratingScopeInstance migratingActivityInstance)
- Specified by:
addChild
in classMigratingScopeInstance
-
removeChild
public void removeChild(MigratingScopeInstance child)
- Specified by:
removeChild
in classMigratingScopeInstance
-
addChild
public void addChild(MigratingEventScopeInstance compensationInstance)
-
removeChild
public void removeChild(MigratingEventScopeInstance compensationInstance)
-
addChild
public void addChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription)
- Specified by:
addChild
in classMigratingScopeInstance
-
removeChild
public void removeChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription)
- Specified by:
removeChild
in classMigratingScopeInstance
-
getActivityInstance
public ActivityInstance getActivityInstance()
-
getActivityInstanceId
public java.lang.String getActivityInstanceId()
-
getParent
public MigratingActivityInstance getParent()
- Overrides:
getParent
in classMigratingProcessElementInstance
-
getChildren
public java.util.Set<MigratingProcessElementInstance> getChildren()
Returns a copy of all children, modifying the returned set does not have any further effect.- Specified by:
getChildren
in classMigratingScopeInstance
-
getChildScopeInstances
public java.util.Collection<MigratingScopeInstance> getChildScopeInstances()
Description copied from class:MigratingScopeInstance
gets those children that are itself scope instances- Specified by:
getChildScopeInstances
in classMigratingScopeInstance
-
getChildActivityInstances
public java.util.Set<MigratingActivityInstance> getChildActivityInstances()
-
getChildTransitionInstances
public java.util.Set<MigratingTransitionInstance> getChildTransitionInstances()
-
getChildCompensationInstances
public java.util.Set<MigratingEventScopeInstance> 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
protected void migrateHistory(DelegateExecution execution)
-
migrateProcessInstanceHistory
protected void migrateProcessInstanceHistory(DelegateExecution execution)
-
migrateActivityInstanceHistory
protected void migrateActivityInstanceHistory(DelegateExecution execution)
-
createAttachableExecution
public ExecutionEntity createAttachableExecution()
-
destroyAttachableExecution
public void destroyAttachableExecution(ExecutionEntity execution)
-
setParent
public void setParent(MigratingScopeInstance parentInstance)
- Specified by:
setParent
in classMigratingProcessElementInstance
-
-