Class MigratingIncident
- java.lang.Object
-
- org.camunda.bpm.engine.impl.migration.instance.MigratingIncident
-
- All Implemented Interfaces:
MigratingInstance
public class MigratingIncident extends java.lang.Object implements MigratingInstance
-
-
Field Summary
Fields Modifier and Type Field Description protected IncidentEntityincidentprotected java.lang.StringtargetJobDefinitionIdprotected ScopeImpltargetScope
-
Constructor Summary
Constructors Constructor Description MigratingIncident(IncidentEntity incident, ScopeImpl targetScope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachState(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.protected voidattachTo(ExecutionEntity execution)voiddetachState()Detach this instance's state from its owning instance and the execution treebooleanisDetached()voidmigrateDependentEntities()Migrate instances that are aggregated by this instance (e.g.protected voidmigrateHistory()voidmigrateState()Migrate state from the source process definition to the target process definition.voidsetTargetJobDefinitionId(java.lang.String targetJobDefinitionId)
-
-
-
Field Detail
-
incident
protected IncidentEntity incident
-
targetScope
protected ScopeImpl targetScope
-
targetJobDefinitionId
protected java.lang.String targetJobDefinitionId
-
-
Constructor Detail
-
MigratingIncident
public MigratingIncident(IncidentEntity incident, ScopeImpl targetScope)
-
-
Method Detail
-
setTargetJobDefinitionId
public void setTargetJobDefinitionId(java.lang.String targetJobDefinitionId)
-
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
public void attachState(MigratingScopeInstance newOwningInstance)
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
public void attachState(MigratingTransitionInstance targetTransitionInstance)
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
-
migrateHistory
protected void migrateHistory()
-
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
-
attachTo
protected void attachTo(ExecutionEntity execution)
-
-