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 interfaceMigratingActivityInstance.MigratingActivityInstanceBehaviorprotected classMigratingActivityInstance.MigratingNonScopeActivityInstanceBehaviorprotected classMigratingActivityInstance.MigratingScopeActivityInstanceBehavior
-
Field Summary
Fields Modifier and Type Field Description protected booleanactiveStateprotected ActivityInstanceactivityInstanceprotected Set<MigratingActivityInstance>childActivityInstancesprotected Set<MigratingEventScopeInstance>childCompensationInstancesprotected Set<MigratingCompensationEventSubscriptionInstance>childCompensationSubscriptionInstancesprotected Set<MigratingTransitionInstance>childTransitionInstancesprotected List<EmergingInstance>emergingDependentInstancesprotected MigratingActivityInstance.MigratingActivityInstanceBehaviorinstanceBehaviorprotected List<MigratingInstance>migratingDependentInstancesstatic MigrationLoggerMIGRATION_LOGGERprotected List<RemovingInstance>removingDependentInstancesprotected ExecutionEntityrepresentativeExecution-
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:
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
public void attachState(MigratingScopeInstance activityInstance)
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
public void attachState(MigratingTransitionInstance targetTransitionInstance)
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
public ExecutionEntity resolveRepresentativeExecution()
- Specified by:
resolveRepresentativeExecutionin classMigratingProcessElementInstance
-
addMigratingDependentInstance
public void addMigratingDependentInstance(MigratingInstance migratingInstance)
- Specified by:
addMigratingDependentInstancein 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:
addChildin classMigratingScopeInstance
-
removeChild
public void removeChild(MigratingScopeInstance child)
- Specified by:
removeChildin classMigratingScopeInstance
-
addChild
public void addChild(MigratingEventScopeInstance compensationInstance)
-
removeChild
public void removeChild(MigratingEventScopeInstance compensationInstance)
-
addChild
public void addChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription)
- Specified by:
addChildin classMigratingScopeInstance
-
removeChild
public void removeChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription)
- Specified by:
removeChildin classMigratingScopeInstance
-
getActivityInstance
public ActivityInstance getActivityInstance()
-
getActivityInstanceId
public String getActivityInstanceId()
-
getParent
public MigratingActivityInstance getParent()
- Overrides:
getParentin classMigratingProcessElementInstance
-
getChildren
public Set<MigratingProcessElementInstance> getChildren()
Returns a copy of all children, modifying the returned set does not have any further effect.- Specified by:
getChildrenin classMigratingScopeInstance
-
getChildScopeInstances
public Collection<MigratingScopeInstance> getChildScopeInstances()
Description copied from class:MigratingScopeInstancegets those children that are itself scope instances- Specified by:
getChildScopeInstancesin classMigratingScopeInstance
-
getChildActivityInstances
public Set<MigratingActivityInstance> getChildActivityInstances()
-
getChildTransitionInstances
public Set<MigratingTransitionInstance> getChildTransitionInstances()
-
getChildCompensationInstances
public Set<MigratingEventScopeInstance> 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
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:
setParentin classMigratingProcessElementInstance
-
-