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 MigratingInstancepublic void detachState()
MigratingInstancedetachState in interface MigratingInstancepublic void attachState(MigratingScopeInstance newOwningInstance)
MigratingInstanceattachState in interface MigratingInstancepublic void attachState(MigratingTransitionInstance targetTransitionInstance)
MigratingInstanceattachState in interface MigratingInstancepublic void migrateState()
MigratingInstancemigrateState in interface MigratingInstancepublic void migrateDependentEntities()
MigratingInstancemigrateDependentEntities in interface MigratingInstancepublic void create(ExecutionEntity scopeExecution)
EmergingInstancecreate in interface EmergingInstancescopeExecution - the execution to attach the new instancepublic void remove()
RemovingInstanceremove in interface RemovingInstanceCopyright © 2022. All rights reserved.