public class MigratingEventSubscriptionInstance extends Object implements MigratingInstance, RemovingInstance, EmergingInstance
Modifier and Type | Field and Description |
---|---|
protected EventSubscriptionDeclaration |
eventSubscriptionDeclaration |
protected EventSubscriptionEntity |
eventSubscriptionEntity |
static MigrationLogger |
MIGRATION_LOGGER |
protected EventSubscriptionDeclaration |
targetDeclaration |
protected ScopeImpl |
targetScope |
protected boolean |
updateEvent |
Constructor and Description |
---|
MigratingEventSubscriptionInstance(EventSubscriptionDeclaration eventSubscriptionDeclaration) |
MigratingEventSubscriptionInstance(EventSubscriptionEntity eventSubscriptionEntity) |
MigratingEventSubscriptionInstance(EventSubscriptionEntity eventSubscriptionEntity,
ScopeImpl targetScope,
boolean updateEvent,
EventSubscriptionDeclaration targetDeclaration) |
Modifier and Type | Method and Description |
---|---|
void |
attachState(MigratingScopeInstance newOwningInstance)
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 |
create(ExecutionEntity scopeExecution)
Creates this instance and attachs it to the given execution.
|
void |
detachState()
Detach this instance's state from its owning instance and the execution tree
|
boolean |
isDetached() |
void |
migrateDependentEntities()
Migrate instances that are aggregated by this instance
(e.g.
|
void |
migrateState()
Migrate state from the source process definition
to the target process definition.
|
void |
remove()
Remove this instance from the process instance.
|
public static final MigrationLogger MIGRATION_LOGGER
protected EventSubscriptionEntity eventSubscriptionEntity
protected ScopeImpl targetScope
protected boolean updateEvent
protected EventSubscriptionDeclaration targetDeclaration
protected EventSubscriptionDeclaration eventSubscriptionDeclaration
public MigratingEventSubscriptionInstance(EventSubscriptionEntity eventSubscriptionEntity, ScopeImpl targetScope, boolean updateEvent, EventSubscriptionDeclaration targetDeclaration)
public MigratingEventSubscriptionInstance(EventSubscriptionEntity eventSubscriptionEntity)
public MigratingEventSubscriptionInstance(EventSubscriptionDeclaration eventSubscriptionDeclaration)
public boolean isDetached()
isDetached
in interface MigratingInstance
public void detachState()
MigratingInstance
detachState
in interface MigratingInstance
public void attachState(MigratingScopeInstance newOwningInstance)
MigratingInstance
attachState
in interface MigratingInstance
public void attachState(MigratingTransitionInstance targetTransitionInstance)
MigratingInstance
attachState
in interface MigratingInstance
public void migrateState()
MigratingInstance
migrateState
in interface MigratingInstance
public void migrateDependentEntities()
MigratingInstance
migrateDependentEntities
in interface MigratingInstance
public void create(ExecutionEntity scopeExecution)
EmergingInstance
create
in interface EmergingInstance
scopeExecution
- the execution to attach the new instancepublic void remove()
RemovingInstance
remove
in interface RemovingInstance
Copyright © 2022. All rights reserved.