|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.migration.MigrateProcessInstanceCmd
public class MigrateProcessInstanceCmd
How migration works:
| Field Summary | |
|---|---|
protected static MigrationLogger |
LOGGER
|
protected MigrationPlan |
migrationPlan
|
protected List<String> |
processInstanceIds
|
| Constructor Summary | |
|---|---|
MigrateProcessInstanceCmd(MigrationPlan migrationPlan,
List<String> processInstanceIds)
|
|
| Method Summary | |
|---|---|
protected Set<MigratingActivityInstance> |
collectLeafInstances(MigratingProcessInstance migratingProcessInstance)
|
protected List<ScopeImpl> |
collectNonExistingFlowScopes(ScopeImpl scope,
MigratingExecutionBranch migratingExecutionBranch)
Returns a list of flow scopes from the given scope until a scope is reached that is already present in the given MigratingExecutionBranch (exclusive). |
protected void |
deleteUnmappedActivityInstances(MigratingProcessInstance migratingProcessInstance)
delete unmapped instances in a bottom-up fashion (similar to deleteCascade and regular BPMN execution) |
Void |
execute(CommandContext commandContext)
|
protected void |
instantiateScopes(ExecutionEntity ancestorScopeExecution,
MigratingExecutionBranch executionBranch,
List<ScopeImpl> scopesToInstantiate)
Creates scope executions for the given list of scopes; Registers these executions with the migrating execution branch; |
protected void |
migrateActivityInstance(MigratingProcessInstance migratingProcessInstance,
MigratingExecutionBranch migratingExecutionBranch,
MigratingActivityInstance migratingActivityInstance)
|
Void |
migrateProcessInstance(CommandContext commandContext,
String processInstanceId,
ProcessDefinitionEntity targetProcessDefinition)
|
protected void |
migrateProcessInstance(MigratingProcessInstance migratingProcessInstance)
Migrate activity instances to their new activities and process definition. |
protected void |
validateInstructions(MigratingProcessInstance migratingProcessInstance)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MigrationPlan migrationPlan
protected List<String> processInstanceIds
protected static final MigrationLogger LOGGER
| Constructor Detail |
|---|
public MigrateProcessInstanceCmd(MigrationPlan migrationPlan, List<String> processInstanceIds)
| Method Detail |
|---|
public Void execute(CommandContext commandContext)
public Void migrateProcessInstance(CommandContext commandContext, String processInstanceId, ProcessDefinitionEntity targetProcessDefinition)
protected void deleteUnmappedActivityInstances(MigratingProcessInstance migratingProcessInstance)
protected Set<MigratingActivityInstance> collectLeafInstances(MigratingProcessInstance migratingProcessInstance)
protected void validateInstructions(MigratingProcessInstance migratingProcessInstance)
protected void migrateProcessInstance(MigratingProcessInstance migratingProcessInstance)
protected void migrateActivityInstance(MigratingProcessInstance migratingProcessInstance, MigratingExecutionBranch migratingExecutionBranch, MigratingActivityInstance migratingActivityInstance)
protected List<ScopeImpl> collectNonExistingFlowScopes(ScopeImpl scope, MigratingExecutionBranch migratingExecutionBranch)
MigratingExecutionBranch (exclusive). The order of the returned list is top-down, i.e. the highest scope
is the first element of the list.
protected void instantiateScopes(ExecutionEntity ancestorScopeExecution, MigratingExecutionBranch executionBranch, List<ScopeImpl> scopesToInstantiate)
ancestorScopeExecution - the execution for the scope that the scopes to instantiate
are subordinates toexecutionBranch - the migrating execution branch that manages scopes and their executionsscopesToInstantiate - a list of hierarchical scopes to instantiate, ordered top-down
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||