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
FieldsModifier and TypeFieldDescriptionprotected Set<MigratingEventScopeInstance>protected ExecutionEntityprotected List<MigratingInstance>static final MigrationLoggerFields inherited from class org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
currentScope, migrationInstruction, parentInstance, sourceScope, targetScope -
Constructor Summary
ConstructorsConstructorDescriptionMigratingEventScopeInstance(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 TypeMethodDescriptionvoidaddChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription) voidaddChild(MigratingScopeInstance migratingScopeInstance) voidaddMigratingDependentInstance(MigratingInstance migratingInstance) voidattachState(MigratingScopeInstance targetActivityInstance) 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.voidvoidDetach this instance's state from its owning instance and the execution treegets all childrengets those children that are itself scope instancesbooleanvoidMigrate instances that are aggregated by this instance (e.g.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(MigratingCompensationEventSubscriptionInstance migratingEventSubscription) voidremoveChild(MigratingScopeInstance migratingScopeInstance) voidvoidsetParent(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:MigratingInstanceDetach this instance's state from its owning instance and the execution tree -
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. -
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. -
migrateState
public void migrateState()Description copied from interface:MigratingInstanceMigrate state from the source process definition to the target process definition. -
migrateDependentEntities
public void migrateDependentEntities()Description copied from interface:MigratingInstanceMigrate instances that are aggregated by this instance (e.g. an activity instance aggregates task instances). -
setParent
- Specified by:
setParentin classMigratingProcessElementInstance
-
addMigratingDependentInstance
- Specified by:
addMigratingDependentInstancein classMigratingProcessElementInstance
-
resolveRepresentativeExecution
- Specified by:
resolveRepresentativeExecutionin classMigratingProcessElementInstance
-
removeChild
- Specified by:
removeChildin classMigratingScopeInstance
-
addChild
- Specified by:
addChildin classMigratingScopeInstance
-
addChild
- Specified by:
addChildin classMigratingScopeInstance
-
removeChild
- Specified by:
removeChildin classMigratingScopeInstance
-
migrates
public boolean migrates()- Specified by:
migratesin classMigratingScopeInstance
-
detachChildren
public void detachChildren()- Specified by:
detachChildrenin 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
-
getChildren
Description copied from class:MigratingScopeInstancegets all children- Specified by:
getChildrenin classMigratingScopeInstance
-
getChildScopeInstances
Description copied from class:MigratingScopeInstancegets those children that are itself scope instances- Specified by:
getChildScopeInstancesin classMigratingScopeInstance
-
removeUnmappedDependentInstances
public void removeUnmappedDependentInstances()- Specified by:
removeUnmappedDependentInstancesin classMigratingScopeInstance
-
getEventSubscription
-