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

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.MigratingActivityInstance
All Implemented Interfaces:
MigratingInstance

public class MigratingActivityInstance
extends MigratingScopeInstance
implements MigratingInstance

Author:
Thorben Lindhauer

Nested Class Summary
protected static interface MigratingActivityInstance.MigratingActivityInstanceBehavior
           
protected  class MigratingActivityInstance.MigratingNonScopeActivityInstanceBehavior
           
protected  class MigratingActivityInstance.MigratingScopeActivityInstanceBehavior
           
 
Field Summary
protected  boolean activeState
           
protected  ActivityInstance activityInstance
           
protected  Set<MigratingActivityInstance> childActivityInstances
           
protected  Set<MigratingEventScopeInstance> childCompensationInstances
           
protected  Set<MigratingCompensationEventSubscriptionInstance> childCompensationSubscriptionInstances
           
protected  Set<MigratingTransitionInstance> childTransitionInstances
           
protected  List<EmergingInstance> emergingDependentInstances
           
protected  MigratingActivityInstance.MigratingActivityInstanceBehavior instanceBehavior
           
protected  List<MigratingInstance> migratingDependentInstances
           
static MigrationLogger MIGRATION_LOGGER
           
protected  List<RemovingInstance> removingDependentInstances
           
protected  ExecutionEntity representativeExecution
           
 
Fields inherited from class org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
currentScope, migrationInstruction, parentInstance, sourceScope, targetScope
 
Constructor Summary
MigratingActivityInstance(ActivityInstance activityInstance, MigrationInstruction migrationInstruction, ScopeImpl sourceScope, ScopeImpl targetScope, ExecutionEntity scopeExecution)
          Creates a migrating activity instances
MigratingActivityInstance(ScopeImpl targetScope, ExecutionEntity scopeExecution)
          Creates an emerged activity instance
 
Method Summary
 void addChild(MigratingActivityInstance activityInstance)
           
 void addChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription)
           
 void addChild(MigratingEventScopeInstance compensationInstance)
           
 void addChild(MigratingScopeInstance migratingActivityInstance)
           
 void addChild(MigratingTransitionInstance transitionInstance)
           
 void addEmergingDependentInstance(EmergingInstance emergingInstance)
           
 void addMigratingDependentInstance(MigratingInstance migratingInstance)
           
 void addRemovingDependentInstance(RemovingInstance removingInstance)
           
 void attachState(MigratingScopeInstance activityInstance)
          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.
 ExecutionEntity createAttachableExecution()
           
 void destroyAttachableExecution(ExecutionEntity execution)
           
 void detachChildren()
           
 void detachDependentInstances()
           
 void detachState()
          Detach this instance's state from its owning instance and the execution tree
protected  MigratingActivityInstance.MigratingActivityInstanceBehavior determineBehavior(ScopeImpl scope)
           
 ActivityInstance getActivityInstance()
           
 String getActivityInstanceId()
           
 Set<MigratingActivityInstance> getChildActivityInstances()
           
 Set<MigratingEventScopeInstance> getChildCompensationInstances()
           
 Set<MigratingProcessElementInstance> getChildren()
          Returns a copy of all children, modifying the returned set does not have any further effect.
 Collection<MigratingScopeInstance> getChildScopeInstances()
          gets those children that are itself scope instances
 Set<MigratingTransitionInstance> getChildTransitionInstances()
           
 List<MigratingInstance> getMigratingDependentInstances()
           
 MigratingActivityInstance getParent()
           
 boolean isDetached()
           
protected  void migrateActivityInstanceHistory(DelegateExecution execution)
           
 void migrateDependentEntities()
          Migrate instances that are aggregated by this instance (e.g.
protected  void migrateHistory(DelegateExecution execution)
           
protected  void migrateProcessInstanceHistory(DelegateExecution execution)
           
 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(MigratingActivityInstance activityInstance)
           
 void removeChild(MigratingCompensationEventSubscriptionInstance migratingEventSubscription)
           
 void removeChild(MigratingEventScopeInstance compensationInstance)
           
 void removeChild(MigratingScopeInstance child)
           
 void removeChild(MigratingTransitionInstance transitionInstance)
           
 void removeUnmappedDependentInstances()
           
 ExecutionEntity resolveRepresentativeExecution()
           
 void setParent(MigratingScopeInstance parentInstance)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.migration.instance.MigratingProcessElementInstance
getClosestAncestorActivityInstance, getCurrentScope, getMigrationInstruction, 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

activityInstance

protected ActivityInstance activityInstance

representativeExecution

protected ExecutionEntity representativeExecution

activeState

protected boolean activeState

removingDependentInstances

protected List<RemovingInstance> removingDependentInstances

migratingDependentInstances

protected List<MigratingInstance> migratingDependentInstances

emergingDependentInstances

protected List<EmergingInstance> emergingDependentInstances

childActivityInstances

protected Set<MigratingActivityInstance> childActivityInstances

childTransitionInstances

protected Set<MigratingTransitionInstance> childTransitionInstances

childCompensationInstances

protected Set<MigratingEventScopeInstance> childCompensationInstances

childCompensationSubscriptionInstances

protected Set<MigratingCompensationEventSubscriptionInstance> childCompensationSubscriptionInstances

instanceBehavior

protected MigratingActivityInstance.MigratingActivityInstanceBehavior instanceBehavior
Constructor Detail

MigratingActivityInstance

public MigratingActivityInstance(ActivityInstance activityInstance,
                                 MigrationInstruction migrationInstruction,
                                 ScopeImpl sourceScope,
                                 ScopeImpl targetScope,
                                 ExecutionEntity scopeExecution)
Creates a migrating activity instances


MigratingActivityInstance

public MigratingActivityInstance(ScopeImpl targetScope,
                                 ExecutionEntity scopeExecution)
Creates an emerged activity instance

Method Detail

determineBehavior

protected MigratingActivityInstance.MigratingActivityInstanceBehavior determineBehavior(ScopeImpl scope)

detachChildren

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

detachDependentInstances

public void detachDependentInstances()

isDetached

public boolean isDetached()
Specified by:
isDetached in interface MigratingInstance

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 interface MigratingInstance

attachState

public void attachState(MigratingScopeInstance activityInstance)
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 interface MigratingInstance

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 interface MigratingInstance

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 interface MigratingInstance

resolveRepresentativeExecution

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

addMigratingDependentInstance

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

getMigratingDependentInstances

public List<MigratingInstance> getMigratingDependentInstances()

addRemovingDependentInstance

public void addRemovingDependentInstance(RemovingInstance removingInstance)

addEmergingDependentInstance

public void addEmergingDependentInstance(EmergingInstance emergingInstance)

addChild

public void addChild(MigratingTransitionInstance transitionInstance)

removeChild

public void removeChild(MigratingTransitionInstance transitionInstance)

addChild

public void addChild(MigratingActivityInstance activityInstance)

removeChild

public void removeChild(MigratingActivityInstance activityInstance)

addChild

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

removeChild

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

addChild

public void addChild(MigratingEventScopeInstance compensationInstance)

removeChild

public void removeChild(MigratingEventScopeInstance compensationInstance)

addChild

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

removeChild

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

getActivityInstance

public ActivityInstance getActivityInstance()

getActivityInstanceId

public String getActivityInstanceId()

getParent

public MigratingActivityInstance getParent()
Overrides:
getParent in class MigratingProcessElementInstance

getChildren

public Set<MigratingProcessElementInstance> getChildren()
Returns a copy of all children, modifying the returned set does not have any further effect.

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

getChildActivityInstances

public Set<MigratingActivityInstance> getChildActivityInstances()

getChildTransitionInstances

public Set<MigratingTransitionInstance> getChildTransitionInstances()

getChildCompensationInstances

public Set<MigratingEventScopeInstance> getChildCompensationInstances()

migrates

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

removeUnmappedDependentInstances

public void removeUnmappedDependentInstances()
Specified by:
removeUnmappedDependentInstances 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

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 interface MigratingInstance

migrateHistory

protected void migrateHistory(DelegateExecution execution)

migrateProcessInstanceHistory

protected void migrateProcessInstanceHistory(DelegateExecution execution)

migrateActivityInstanceHistory

protected void migrateActivityInstanceHistory(DelegateExecution execution)

createAttachableExecution

public ExecutionEntity createAttachableExecution()

destroyAttachableExecution

public void destroyAttachableExecution(ExecutionEntity execution)

setParent

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


Copyright © 2016 camunda services GmbH. All rights reserved.