Class MigratingEventScopeInstance
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.MigratingEventScopeInstance
- All Implemented Interfaces:
MigratingInstance
- Author:
- Thorben Lindhauer
-
Field Summary
Modifier and TypeFieldDescriptionprotected Set<MigratingEventScopeInstance>
protected ExecutionEntity
protected List<MigratingInstance>
static final MigrationLogger
Fields inherited from class org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
currentScope, migrationInstruction, parentInstance, sourceScope, targetScope
-
Constructor Summary
ConstructorDescriptionMigratingEventScopeInstance
(EventSubscriptionEntity eventSubscription, ExecutionEntity eventScopeExecution, ScopeImpl targetScope) Creates an emerged scopeMigratingEventScopeInstance
(MigrationInstruction migrationInstruction, ExecutionEntity eventScopeExecution, ScopeImpl sourceScope, ScopeImpl targetScope, MigrationInstruction eventSubscriptionInstruction, EventSubscriptionEntity eventSubscription, ScopeImpl eventSubscriptionSourceScope, ScopeImpl eventSubscriptionTargetScope) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(MigratingCompensationEventSubscriptionInstance migratingEventSubscription) void
addChild
(MigratingScopeInstance migratingScopeInstance) void
addMigratingDependentInstance
(MigratingInstance migratingInstance) void
attachState
(MigratingScopeInstance targetActivityInstance) 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
void
Detach this instance's state from its owning instance and the execution treegets all childrengets those children that are itself scope instancesboolean
void
Migrate instances that are aggregated by this instance (e.g.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
(MigratingCompensationEventSubscriptionInstance migratingEventSubscription) void
removeChild
(MigratingScopeInstance migratingScopeInstance) void
void
setParent
(MigratingScopeInstance parentInstance) Methods inherited from class org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
getClosestAncestorActivityInstance, getCurrentScope, getMigrationInstruction, getParent, getSourceScope, getTargetScope, migratesTo
-
Field Details
-
MIGRATION_LOGGER
-
migratingEventSubscription
-
eventScopeExecution
-
childInstances
-
childCompensationSubscriptionInstances
protected Set<MigratingCompensationEventSubscriptionInstance> childCompensationSubscriptionInstances -
migratingDependentInstances
-
-
Constructor Details
-
MigratingEventScopeInstance
public MigratingEventScopeInstance(MigrationInstruction migrationInstruction, ExecutionEntity eventScopeExecution, ScopeImpl sourceScope, ScopeImpl targetScope, MigrationInstruction eventSubscriptionInstruction, EventSubscriptionEntity eventSubscription, ScopeImpl eventSubscriptionSourceScope, ScopeImpl eventSubscriptionTargetScope) -
MigratingEventScopeInstance
public MigratingEventScopeInstance(EventSubscriptionEntity eventSubscription, ExecutionEntity eventScopeExecution, ScopeImpl targetScope) Creates an emerged scope
-
-
Method Details
-
isDetached
public boolean isDetached() -
detachState
public void detachState()Description copied from interface:MigratingInstance
Detach this instance's state from its owning instance and the execution tree -
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. -
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. -
migrateState
public void migrateState()Description copied from interface:MigratingInstance
Migrate state from the source process definition to the target process definition. -
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). -
setParent
- Specified by:
setParent
in classMigratingProcessElementInstance
-
addMigratingDependentInstance
- Specified by:
addMigratingDependentInstance
in classMigratingProcessElementInstance
-
resolveRepresentativeExecution
- Specified by:
resolveRepresentativeExecution
in classMigratingProcessElementInstance
-
removeChild
- Specified by:
removeChild
in classMigratingScopeInstance
-
addChild
- Specified by:
addChild
in classMigratingScopeInstance
-
addChild
- Specified by:
addChild
in classMigratingScopeInstance
-
removeChild
- Specified by:
removeChild
in classMigratingScopeInstance
-
migrates
public boolean migrates()- Specified by:
migrates
in classMigratingScopeInstance
-
detachChildren
public void detachChildren()- Specified by:
detachChildren
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
-
getChildren
Description copied from class:MigratingScopeInstance
gets all children- Specified by:
getChildren
in classMigratingScopeInstance
-
getChildScopeInstances
Description copied from class:MigratingScopeInstance
gets those children that are itself scope instances- Specified by:
getChildScopeInstances
in classMigratingScopeInstance
-
removeUnmappedDependentInstances
public void removeUnmappedDependentInstances()- Specified by:
removeUnmappedDependentInstances
in classMigratingScopeInstance
-
getEventSubscription
-