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 Set<MigratingCompensationEventSubscriptionInstance>childCompensationSubscriptionInstancesprotected Set<MigratingEventScopeInstance>childInstancesprotected ExecutionEntityeventScopeExecutionprotected List<MigratingInstance>migratingDependentInstancesprotected MigratingCompensationEventSubscriptionInstancemigratingEventSubscriptionstatic MigrationLoggerMIGRATION_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 voidaddChild(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.voiddetachChildren()voiddetachState()Detach this instance's state from its owning instance and the execution treeCollection<MigratingProcessElementInstance>getChildren()gets all childrenCollection<MigratingScopeInstance>getChildScopeInstances()gets those children that are itself scope instancesMigratingCompensationEventSubscriptionInstancegetEventSubscription()booleanisDetached()voidmigrateDependentEntities()Migrate instances that are aggregated by this instance (e.g.booleanmigrates()voidmigrateState()Migrate 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)voidremoveUnmappedDependentInstances()ExecutionEntityresolveRepresentativeExecution()voidsetParent(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 Set<MigratingEventScopeInstance> childInstances
-
childCompensationSubscriptionInstances
protected Set<MigratingCompensationEventSubscriptionInstance> childCompensationSubscriptionInstances
-
migratingDependentInstances
protected 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:MigratingInstanceDetach this instance's state from its owning instance and the execution tree
-
attachState
public void attachState(MigratingScopeInstance targetActivityInstance)
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
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.
-
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
public void setParent(MigratingScopeInstance parentInstance)
- Specified by:
setParentin classMigratingProcessElementInstance
-
addMigratingDependentInstance
public void addMigratingDependentInstance(MigratingInstance migratingInstance)
- Specified by:
addMigratingDependentInstancein classMigratingProcessElementInstance
-
resolveRepresentativeExecution
public ExecutionEntity resolveRepresentativeExecution()
- Specified by:
resolveRepresentativeExecutionin classMigratingProcessElementInstance
-
removeChild
public void removeChild(MigratingScopeInstance migratingScopeInstance)
- Specified by:
removeChildin classMigratingScopeInstance
-
addChild
public void addChild(MigratingScopeInstance migratingScopeInstance)
- Specified by:
addChildin classMigratingScopeInstance
-
addChild
public void addChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription)
- Specified by:
addChildin classMigratingScopeInstance
-
removeChild
public void removeChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription)
- 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
public Collection<MigratingProcessElementInstance> getChildren()
Description copied from class:MigratingScopeInstancegets all children- 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
-
removeUnmappedDependentInstances
public void removeUnmappedDependentInstances()
- Specified by:
removeUnmappedDependentInstancesin classMigratingScopeInstance
-
getEventSubscription
public MigratingCompensationEventSubscriptionInstance getEventSubscription()
-
-