org.camunda.bpm.engine.impl.migration.instance
Class MigratingEventScopeInstance

java.lang.Object
  extended by org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
      extended by org.camunda.bpm.engine.impl.migration.instance.MigratingScopeInstance
          extended by org.camunda.bpm.engine.impl.migration.instance.MigratingEventScopeInstance
All Implemented Interfaces:
MigratingInstance

public class MigratingEventScopeInstance
extends MigratingScopeInstance

Author:
Thorben Lindhauer

Field Summary
protected  Set<MigratingCompensationEventSubscriptionInstance> childCompensationSubscriptionInstances
           
protected  Set<MigratingEventScopeInstance> childInstances
           
protected  ExecutionEntity eventScopeExecution
           
protected  List<MigratingInstance> migratingDependentInstances
           
protected  MigratingCompensationEventSubscriptionInstance migratingEventSubscription
           
static MigrationLogger MIGRATION_LOGGER
           
 
Fields inherited from class org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
currentScope, migrationInstruction, parentInstance, sourceScope, targetScope
 
Constructor Summary
MigratingEventScopeInstance(EventSubscriptionEntity eventSubscription, ExecutionEntity eventScopeExecution, ScopeImpl targetScope)
          Creates an emerged scope
MigratingEventScopeInstance(MigrationInstruction migrationInstruction, ExecutionEntity eventScopeExecution, ScopeImpl sourceScope, ScopeImpl targetScope, MigrationInstruction eventSubscriptionInstruction, EventSubscriptionEntity eventSubscription, ScopeImpl eventSubscriptionSourceScope, ScopeImpl eventSubscriptionTargetScope)
           
 
Method Summary
 void addChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription)
           
 void addChild(MigratingScopeInstance migratingScopeInstance)
           
 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 detachChildren()
           
 void detachState()
          Detach this instance's state from its owning instance and the execution tree
 Collection<MigratingProcessElementInstance> getChildren()
          gets all children
 Collection<MigratingScopeInstance> getChildScopeInstances()
          gets those children that are itself scope instances
 MigratingCompensationEventSubscriptionInstance getEventSubscription()
           
 boolean isDetached()
           
 void migrateDependentEntities()
          Migrate instances that are aggregated by this instance (e.g.
 boolean migrates()
           
 void migrateState()
          Migrate state from the source process definition to the target process definition.
 void remove(boolean skipCustomListeners, boolean skipIoMappings)
          removes this scope; parameters are hints and may be ignored by the implementation
 void removeChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription)
           
 void removeChild(MigratingScopeInstance migratingScopeInstance)
           
 void removeUnmappedDependentInstances()
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIGRATION_LOGGER

public static final MigrationLogger MIGRATION_LOGGER

migratingEventSubscription

protected MigratingCompensationEventSubscriptionInstance migratingEventSubscription

eventScopeExecution

protected ExecutionEntity eventScopeExecution

childInstances

protected Set<MigratingEventScopeInstance> childInstances

childCompensationSubscriptionInstances

protected Set<MigratingCompensationEventSubscriptionInstance> childCompensationSubscriptionInstances

migratingDependentInstances

protected List<MigratingInstance> migratingDependentInstances
Constructor Detail

MigratingEventScopeInstance

public MigratingEventScopeInstance(MigrationInstruction migrationInstruction,
                                   ExecutionEntity eventScopeExecution,
                                   ScopeImpl sourceScope,
                                   ScopeImpl targetScope,
                                   MigrationInstruction eventSubscriptionInstruction,
                                   EventSubscriptionEntity eventSubscription,
                                   ScopeImpl eventSubscriptionSourceScope,
                                   ScopeImpl eventSubscriptionTargetScope)

MigratingEventScopeInstance

public MigratingEventScopeInstance(EventSubscriptionEntity eventSubscription,
                                   ExecutionEntity eventScopeExecution,
                                   ScopeImpl targetScope)
Creates an emerged scope

Method Detail

isDetached

public boolean isDetached()

detachState

public void detachState()
Description copied from interface: MigratingInstance
Detach this instance's state from its owning instance and the execution tree


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.


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.


migrateState

public void migrateState()
Description copied from interface: MigratingInstance
Migrate state from the source process definition to the target process definition.


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).


setParent

public void setParent(MigratingScopeInstance parentInstance)
Specified by:
setParent in class MigratingProcessElementInstance

addMigratingDependentInstance

public void addMigratingDependentInstance(MigratingInstance migratingInstance)
Specified by:
addMigratingDependentInstance in class MigratingProcessElementInstance

resolveRepresentativeExecution

public ExecutionEntity resolveRepresentativeExecution()
Specified by:
resolveRepresentativeExecution in class MigratingProcessElementInstance

removeChild

public void removeChild(MigratingScopeInstance migratingScopeInstance)
Specified by:
removeChild in class MigratingScopeInstance

addChild

public void addChild(MigratingScopeInstance migratingScopeInstance)
Specified by:
addChild in class MigratingScopeInstance

addChild

public void addChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription)
Specified by:
addChild in class MigratingScopeInstance

removeChild

public void removeChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription)
Specified by:
removeChild in class MigratingScopeInstance

migrates

public boolean migrates()
Specified by:
migrates in class MigratingScopeInstance

detachChildren

public void detachChildren()
Specified by:
detachChildren in class MigratingScopeInstance

remove

public void remove(boolean skipCustomListeners,
                   boolean skipIoMappings)
Description copied from class: MigratingScopeInstance
removes this scope; parameters are hints and may be ignored by the implementation

Specified by:
remove in class MigratingScopeInstance

getChildren

public Collection<MigratingProcessElementInstance> getChildren()
Description copied from class: MigratingScopeInstance
gets all children

Specified by:
getChildren in class MigratingScopeInstance

getChildScopeInstances

public Collection<MigratingScopeInstance> getChildScopeInstances()
Description copied from class: MigratingScopeInstance
gets those children that are itself scope instances

Specified by:
getChildScopeInstances in class MigratingScopeInstance

removeUnmappedDependentInstances

public void removeUnmappedDependentInstances()
Specified by:
removeUnmappedDependentInstances in class MigratingScopeInstance

getEventSubscription

public MigratingCompensationEventSubscriptionInstance getEventSubscription()


Copyright © 2017 camunda services GmbH. All rights reserved.