Class MigratingEventSubscriptionInstance
java.lang.Object
org.camunda.bpm.engine.impl.migration.instance.MigratingEventSubscriptionInstance
- All Implemented Interfaces:
EmergingInstance,MigratingInstance,RemovingInstance
public class MigratingEventSubscriptionInstance
extends Object
implements MigratingInstance, RemovingInstance, EmergingInstance
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EventSubscriptionDeclarationprotected EventSubscriptionEntitystatic final MigrationLoggerprotected EventSubscriptionDeclarationprotected ScopeImplprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionMigratingEventSubscriptionInstance(EventSubscriptionDeclaration eventSubscriptionDeclaration) MigratingEventSubscriptionInstance(EventSubscriptionEntity eventSubscriptionEntity) MigratingEventSubscriptionInstance(EventSubscriptionEntity eventSubscriptionEntity, ScopeImpl targetScope, boolean updateEvent, EventSubscriptionDeclaration targetDeclaration) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachState(MigratingScopeInstance newOwningInstance) 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.voidcreate(ExecutionEntity scopeExecution) Creates this instance and attachs it to the given execution.voidDetach this instance's state from its owning instance and the execution treebooleanvoidMigrate instances that are aggregated by this instance (e.g.voidMigrate state from the source process definition to the target process definition.voidremove()Remove this instance from the process instance.
-
Field Details
-
MIGRATION_LOGGER
-
eventSubscriptionEntity
-
targetScope
-
updateEvent
protected boolean updateEvent -
targetDeclaration
-
eventSubscriptionDeclaration
-
-
Constructor Details
-
MigratingEventSubscriptionInstance
public MigratingEventSubscriptionInstance(EventSubscriptionEntity eventSubscriptionEntity, ScopeImpl targetScope, boolean updateEvent, EventSubscriptionDeclaration targetDeclaration) -
MigratingEventSubscriptionInstance
-
MigratingEventSubscriptionInstance
public MigratingEventSubscriptionInstance(EventSubscriptionDeclaration eventSubscriptionDeclaration)
-
-
Method Details
-
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
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
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
-
migrateState
public void migrateState()Description copied from interface:MigratingInstanceMigrate state from the source process definition to the target process definition.- Specified by:
migrateStatein 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
-
create
Description copied from interface:EmergingInstanceCreates this instance and attachs it to the given execution.- Specified by:
createin interfaceEmergingInstance- Parameters:
scopeExecution- the execution to attach the new instance
-
remove
public void remove()Description copied from interface:RemovingInstanceRemove this instance from the process instance.- Specified by:
removein interfaceRemovingInstance
-