Class MigratingCompensationEventSubscriptionInstance
- java.lang.Object
-
- org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
-
- org.camunda.bpm.engine.impl.migration.instance.MigratingCompensationEventSubscriptionInstance
-
- All Implemented Interfaces:
MigratingInstance
,RemovingInstance
public class MigratingCompensationEventSubscriptionInstance extends MigratingProcessElementInstance implements RemovingInstance
- Author:
- Thorben Lindhauer
-
-
Field Summary
Fields Modifier and Type Field Description protected EventSubscriptionEntity
eventSubscription
static MigrationLogger
MIGRATION_LOGGER
-
Fields inherited from class org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
currentScope, migrationInstruction, parentInstance, sourceScope, targetScope
-
-
Constructor Summary
Constructors Constructor Description MigratingCompensationEventSubscriptionInstance(MigrationInstruction migrationInstruction, ScopeImpl sourceScope, ScopeImpl targetScope, EventSubscriptionEntity eventSubscription)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMigratingDependentInstance(MigratingInstance migratingInstance)
void
attachState(MigratingScopeInstance targetActivityInstance)
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
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.ExecutionEntity
resolveRepresentativeExecution()
void
setParent(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
-
eventSubscription
protected EventSubscriptionEntity eventSubscription
-
-
Constructor Detail
-
MigratingCompensationEventSubscriptionInstance
public MigratingCompensationEventSubscriptionInstance(MigrationInstruction migrationInstruction, ScopeImpl sourceScope, ScopeImpl targetScope, EventSubscriptionEntity eventSubscription)
-
-
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(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
-
addMigratingDependentInstance
public void addMigratingDependentInstance(MigratingInstance migratingInstance)
- Specified by:
addMigratingDependentInstance
in classMigratingProcessElementInstance
-
resolveRepresentativeExecution
public ExecutionEntity resolveRepresentativeExecution()
- Specified by:
resolveRepresentativeExecution
in classMigratingProcessElementInstance
-
attachState
public void attachState(MigratingScopeInstance targetActivityInstance)
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
-
setParent
public void setParent(MigratingScopeInstance parentInstance)
- Specified by:
setParent
in classMigratingProcessElementInstance
-
remove
public void remove()
Description copied from interface:RemovingInstance
Remove this instance from the process instance.- Specified by:
remove
in interfaceRemovingInstance
-
-