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
public class MigratingEventScopeInstance extends MigratingScopeInstance
- Author:
- Thorben Lindhauer
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<MigratingCompensationEventSubscriptionInstance>
childCompensationSubscriptionInstances
protected java.util.Set<MigratingEventScopeInstance>
childInstances
protected ExecutionEntity
eventScopeExecution
protected java.util.List<MigratingInstance>
migratingDependentInstances
protected MigratingCompensationEventSubscriptionInstance
migratingEventSubscription
static MigrationLogger
MIGRATION_LOGGER
-
Fields inherited from class org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
currentScope, migrationInstruction, parentInstance, sourceScope, targetScope
-
-
Constructor Summary
Constructors Constructor Description MigratingEventScopeInstance(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
detachChildren()
void
detachState()
Detach this instance's state from its owning instance and the execution treejava.util.Collection<MigratingProcessElementInstance>
getChildren()
gets all childrenjava.util.Collection<MigratingScopeInstance>
getChildScopeInstances()
gets those children that are itself scope instancesMigratingCompensationEventSubscriptionInstance
getEventSubscription()
boolean
isDetached()
void
migrateDependentEntities()
Migrate instances that are aggregated by this instance (e.g.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(MigratingCompensationEventSubscriptionInstance migratingEventSubscription)
void
removeChild(MigratingScopeInstance migratingScopeInstance)
void
removeUnmappedDependentInstances()
ExecutionEntity
resolveRepresentativeExecution()
void
setParent(MigratingScopeInstance parentInstance)
-
Methods inherited from class org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
getClosestAncestorActivityInstance, getCurrentScope, getMigrationInstruction, getParent, getSourceScope, getTargetScope, migratesTo
-
-
-
-
Field Detail
-
MIGRATION_LOGGER
public static final MigrationLogger MIGRATION_LOGGER
-
migratingEventSubscription
protected MigratingCompensationEventSubscriptionInstance migratingEventSubscription
-
eventScopeExecution
protected ExecutionEntity eventScopeExecution
-
childInstances
protected java.util.Set<MigratingEventScopeInstance> childInstances
-
childCompensationSubscriptionInstances
protected java.util.Set<MigratingCompensationEventSubscriptionInstance> childCompensationSubscriptionInstances
-
migratingDependentInstances
protected java.util.List<MigratingInstance> migratingDependentInstances
-
-
Constructor Detail
-
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 Detail
-
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
public void attachState(MigratingScopeInstance targetActivityInstance)
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
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.
-
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
public void setParent(MigratingScopeInstance parentInstance)
- Specified by:
setParent
in classMigratingProcessElementInstance
-
addMigratingDependentInstance
public void addMigratingDependentInstance(MigratingInstance migratingInstance)
- Specified by:
addMigratingDependentInstance
in classMigratingProcessElementInstance
-
resolveRepresentativeExecution
public ExecutionEntity resolveRepresentativeExecution()
- Specified by:
resolveRepresentativeExecution
in classMigratingProcessElementInstance
-
removeChild
public void removeChild(MigratingScopeInstance migratingScopeInstance)
- Specified by:
removeChild
in classMigratingScopeInstance
-
addChild
public void addChild(MigratingScopeInstance migratingScopeInstance)
- Specified by:
addChild
in classMigratingScopeInstance
-
addChild
public void addChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription)
- Specified by:
addChild
in classMigratingScopeInstance
-
removeChild
public void removeChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription)
- 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
public java.util.Collection<MigratingProcessElementInstance> getChildren()
Description copied from class:MigratingScopeInstance
gets all children- 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
-
removeUnmappedDependentInstances
public void removeUnmappedDependentInstances()
- Specified by:
removeUnmappedDependentInstances
in classMigratingScopeInstance
-
getEventSubscription
public MigratingCompensationEventSubscriptionInstance getEventSubscription()
-
-