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
Fields Modifier and Type Field Description protected EventSubscriptionDeclaration
eventSubscriptionDeclaration
protected EventSubscriptionEntity
eventSubscriptionEntity
static MigrationLogger
MIGRATION_LOGGER
protected EventSubscriptionDeclaration
targetDeclaration
protected ScopeImpl
targetScope
protected boolean
updateEvent
-
Constructor Summary
Constructors Constructor Description MigratingEventSubscriptionInstance(EventSubscriptionDeclaration eventSubscriptionDeclaration)
MigratingEventSubscriptionInstance(EventSubscriptionEntity eventSubscriptionEntity)
MigratingEventSubscriptionInstance(EventSubscriptionEntity eventSubscriptionEntity, ScopeImpl targetScope, boolean updateEvent, EventSubscriptionDeclaration targetDeclaration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 treeboolean
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.
-
-
-
Field Detail
-
MIGRATION_LOGGER
public static final MigrationLogger MIGRATION_LOGGER
-
eventSubscriptionEntity
protected EventSubscriptionEntity eventSubscriptionEntity
-
targetScope
protected ScopeImpl targetScope
-
updateEvent
protected boolean updateEvent
-
targetDeclaration
protected EventSubscriptionDeclaration targetDeclaration
-
eventSubscriptionDeclaration
protected EventSubscriptionDeclaration eventSubscriptionDeclaration
-
-
Constructor Detail
-
MigratingEventSubscriptionInstance
public MigratingEventSubscriptionInstance(EventSubscriptionEntity eventSubscriptionEntity, ScopeImpl targetScope, boolean updateEvent, EventSubscriptionDeclaration targetDeclaration)
-
MigratingEventSubscriptionInstance
public MigratingEventSubscriptionInstance(EventSubscriptionEntity eventSubscriptionEntity)
-
MigratingEventSubscriptionInstance
public MigratingEventSubscriptionInstance(EventSubscriptionDeclaration eventSubscriptionDeclaration)
-
-
Method Detail
-
isDetached
public boolean isDetached()
- Specified by:
isDetached
in interfaceMigratingInstance
-
detachState
public void detachState()
Description copied from interface:MigratingInstance
Detach this instance's state from its owning instance and the execution tree- Specified by:
detachState
in interfaceMigratingInstance
-
attachState
public void attachState(MigratingScopeInstance newOwningInstance)
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.- Specified by:
attachState
in interfaceMigratingInstance
-
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.- Specified by:
attachState
in interfaceMigratingInstance
-
migrateState
public void migrateState()
Description copied from interface:MigratingInstance
Migrate state from the source process definition to the target process definition.- Specified by:
migrateState
in interfaceMigratingInstance
-
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).- Specified by:
migrateDependentEntities
in interfaceMigratingInstance
-
create
public void create(ExecutionEntity scopeExecution)
Description copied from interface:EmergingInstance
Creates this instance and attachs it to the given execution.- Specified by:
create
in interfaceEmergingInstance
- Parameters:
scopeExecution
- the execution to attach the new instance
-
remove
public void remove()
Description copied from interface:RemovingInstance
Remove this instance from the process instance.- Specified by:
remove
in interfaceRemovingInstance
-
-