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 Set<MigratingActivityInstance>
childActivityInstances
protected Set<MigratingEventScopeInstance>
childCompensationInstances
protected Set<MigratingCompensationEventSubscriptionInstance>
childCompensationSubscriptionInstances
protected Set<MigratingTransitionInstance>
childTransitionInstances
protected List<EmergingInstance>
emergingDependentInstances
protected MigratingActivityInstance.MigratingActivityInstanceBehavior
instanceBehavior
protected List<MigratingInstance>
migratingDependentInstances
static MigrationLogger
MIGRATION_LOGGER
protected 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
-
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 List<RemovingInstance> removingDependentInstances
-
migratingDependentInstances
protected List<MigratingInstance> migratingDependentInstances
-
emergingDependentInstances
protected List<EmergingInstance> emergingDependentInstances
-
childActivityInstances
protected Set<MigratingActivityInstance> childActivityInstances
-
childTransitionInstances
protected Set<MigratingTransitionInstance> childTransitionInstances
-
childCompensationInstances
protected Set<MigratingEventScopeInstance> childCompensationInstances
-
childCompensationSubscriptionInstances
protected 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 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 String getActivityInstanceId()
-
getParent
public MigratingActivityInstance getParent()
- Overrides:
getParent
in classMigratingProcessElementInstance
-
getChildren
public 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 Collection<MigratingScopeInstance> getChildScopeInstances()
Description copied from class:MigratingScopeInstance
gets those children that are itself scope instances- Specified by:
getChildScopeInstances
in classMigratingScopeInstance
-
getChildActivityInstances
public Set<MigratingActivityInstance> getChildActivityInstances()
-
getChildTransitionInstances
public Set<MigratingTransitionInstance> getChildTransitionInstances()
-
getChildCompensationInstances
public 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
-
-