Class ProcessInstanceMigrationManagerImpl
java.lang.Object
org.flowable.engine.impl.dynamic.AbstractDynamicStateManager
org.flowable.engine.impl.migration.ProcessInstanceMigrationManagerImpl
- All Implemented Interfaces:
ProcessInstanceMigrationManager
public class ProcessInstanceMigrationManagerImpl
extends AbstractDynamicStateManager
implements ProcessInstanceMigrationManager
-
Field Summary
Fields inherited from class org.flowable.engine.impl.dynamic.AbstractDynamicStateManager
LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbatchMigrateProcessInstancesOfProcessDefinition(String procDefKey, int procDefVer, String procDefTenantId, ProcessInstanceMigrationDocument document, CommandContext commandContext) batchMigrateProcessInstancesOfProcessDefinition(String sourceProcDefId, ProcessInstanceMigrationDocument document, CommandContext commandContext) protected voidchangeProcessDefinitionReferenceOfHistory(ProcessInstance processInstance, ProcessDefinition processDefinition, CommandContext commandContext) protected voiddoMigrateProcessInstance(ProcessInstance processInstance, ProcessDefinition procDefToMigrateTo, ProcessInstanceMigrationDocument document, CommandContext commandContext) protected voiddoValidateActivityMappings(String processInstanceId, List<ActivityMigrationMapping> activityMappings, BpmnModel newModel, ProcessInstanceMigrationDocument document, ProcessInstanceMigrationValidationResult validationResult, CommandContext commandContext) protected voiddoValidateProcessInstanceMigration(String processInstanceId, String tenantId, BpmnModel newModel, ProcessInstanceMigrationDocument document, ProcessInstanceMigrationValidationResult validationResult, CommandContext commandContext) protected voidexecuteExpression(ProcessInstance processInstance, ProcessDefinition procDefToMigrateTo, String preUpgradeJavaDelegateExpression, CommandContext commandContext) protected voidexecuteJavaDelegate(ProcessInstance processInstance, ProcessDefinition procDefToMigrateTo, String preUpgradeJavaDelegate, CommandContext commandContext) protected voidexecuteScript(ProcessInstance processInstance, ProcessDefinition procDefToMigrateTo, Script script, CommandContext commandContext) protected booleanhasSameLoopCharacteristics(Activity currentActivity, Activity newActivity) protected booleanhasSameStringValue(String currentValue, String newValue) protected booleanhasSameSubProcessContent(SubProcess currentSubProcess, SubProcess newSubProcess) protected booleanisActivityIdInProcessDefinitionModel(String activityId, BpmnModel bpmnModel) protected booleanisDirectAsyncServiceTaskExecutionMigration(FlowElement currentFlowElement, FlowElement newFlowElement) protected booleanisDirectCallActivityExecutionMigration(FlowElement currentFlowElement, FlowElement newFlowElement) protected booleanisDirectExternalWorkerServiceTaskExecutionMigration(FlowElement currentFlowElement, FlowElement newFlowElement) protected booleanisDirectFlowElementExecutionMigration(FlowElement currentFlowElement, FlowElement newFlowElement) protected booleanisDirectReceiveTaskExecutionMigration(FlowElement currentFlowElement, FlowElement newFlowElement) protected booleanisDirectUserTaskExecutionMigration(FlowElement currentFlowElement, FlowElement newFlowElement) protected booleanisSameOrDefaultTenant(String processInstanceTenantId, String processDefinitionKey, String processDefinitionTenantId, ProcessEngineConfigurationImpl processEngineConfiguration) protected booleanisSubProcessAncestorOfAnyExecution(String subProcessId, List<ExecutionEntity> currentExecutions) protected booleanisSubProcessContainerOfAnyFlowElement(String subProcessId, Collection<MoveExecutionEntityContainer.FlowElementMoveEntry> moveToFlowElements) voidmigrateProcessInstance(String processInstanceId, ProcessInstanceMigrationDocument document, CommandContext commandContext) voidmigrateProcessInstancesOfProcessDefinition(String procDefKey, int procDefVer, String procDefTenantId, ProcessInstanceMigrationDocument document, CommandContext commandContext) voidmigrateProcessInstancesOfProcessDefinition(String processDefinitionId, ProcessInstanceMigrationDocument document, CommandContext commandContext) protected List<ChangeActivityStateBuilderImpl>prepareChangeStateBuilders(ExecutionEntity processInstanceExecution, ProcessDefinition procDefToMigrateTo, ProcessInstanceMigrationDocument document, CommandContext commandContext) protected Stringprotected booleanreferToSameCalledElement(CallActivity callActivity1, CallActivity callActivity2) protected Map<String,List<ExecutionEntity>> resolveActiveEmbeddedSubProcesses(String processInstanceId, CommandContext commandContext) protected ProcessDefinitionresolveProcessDefinition(ProcessInstanceMigrationDocument document, CommandContext commandContext) protected voidsplitMigrationMappingByCallActivitySubProcessScope(ActivityMigrationMapping activityMigrationMapping, HashMap<String, ActivityMigrationMapping> mainProcessActivityMappingByFromActivityId, HashMap<String, HashMap<String, ActivityMigrationMapping>> subProcessActivityMappingsByCallActivityIdAndFromActivityId) validateMigrateProcessInstance(String processInstanceId, ProcessInstanceMigrationDocument document, CommandContext commandContext) validateMigrateProcessInstancesOfProcessDefinition(String procDefKey, int procDefVer, String procDefTenantId, ProcessInstanceMigrationDocument document, CommandContext commandContext) validateMigrateProcessInstancesOfProcessDefinition(String processDefinitionId, ProcessInstanceMigrationDocument document, CommandContext commandContext) Methods inherited from class org.flowable.engine.impl.dynamic.AbstractDynamicStateManager
createBoundaryEvents, createCallActivityInstance, createEmbeddedSubProcessAndExecutions, createEmbeddedSubProcessHierarchy, createMoveExecutionEntityContainer, deleteDirectParentExecutions, deleteParentExecutions, deleteParentExecutions, doMoveExecutionState, executeBoundaryEvents, executeBoundaryEvents, getFlowElementMultiInstanceParentId, getFlowElementsInSubProcess, handleExternalWorkerServiceTaskJobUpdate, handleServiceTaskJobUpdate, handleUserTaskNewAssignee, handleUserTaskNewOwner, hasSameMultiInstanceConfig, isEventSubProcessStart, isExecutionInsideMultiInstance, isExpression, isFlowElementMultiInstance, isOnlyRemainingExecutionAtParentScope, isSubProcessAncestorOfAnyNewFlowElements, migrateExecutionEntity, prepareMoveExecutionEntityContainer, processCreatedEventSubProcess, processDataObjects, processPendingEventSubProcessesStartEvents, resolveActiveExecution, resolveActiveExecutions, resolveEnableActivityContainers, resolveFlowElementFromBpmnModel, resolveMoveExecutionEntityContainers, resolveParentExecutionToDelete, resolveProcessDefinition, safeDeleteSubProcessInstance, sameBoundaryEventDefinition
-
Constructor Details
-
ProcessInstanceMigrationManagerImpl
public ProcessInstanceMigrationManagerImpl()
-
-
Method Details
-
validateMigrateProcessInstancesOfProcessDefinition
public ProcessInstanceMigrationValidationResult validateMigrateProcessInstancesOfProcessDefinition(String procDefKey, int procDefVer, String procDefTenantId, ProcessInstanceMigrationDocument document, CommandContext commandContext) - Specified by:
validateMigrateProcessInstancesOfProcessDefinitionin interfaceProcessInstanceMigrationManager
-
validateMigrateProcessInstancesOfProcessDefinition
public ProcessInstanceMigrationValidationResult validateMigrateProcessInstancesOfProcessDefinition(String processDefinitionId, ProcessInstanceMigrationDocument document, CommandContext commandContext) - Specified by:
validateMigrateProcessInstancesOfProcessDefinitionin interfaceProcessInstanceMigrationManager
-
validateMigrateProcessInstance
public ProcessInstanceMigrationValidationResult validateMigrateProcessInstance(String processInstanceId, ProcessInstanceMigrationDocument document, CommandContext commandContext) - Specified by:
validateMigrateProcessInstancein interfaceProcessInstanceMigrationManager
-
doValidateProcessInstanceMigration
protected void doValidateProcessInstanceMigration(String processInstanceId, String tenantId, BpmnModel newModel, ProcessInstanceMigrationDocument document, ProcessInstanceMigrationValidationResult validationResult, CommandContext commandContext) -
doValidateActivityMappings
protected void doValidateActivityMappings(String processInstanceId, List<ActivityMigrationMapping> activityMappings, BpmnModel newModel, ProcessInstanceMigrationDocument document, ProcessInstanceMigrationValidationResult validationResult, CommandContext commandContext) -
batchMigrateProcessInstancesOfProcessDefinition
public Batch batchMigrateProcessInstancesOfProcessDefinition(String procDefKey, int procDefVer, String procDefTenantId, ProcessInstanceMigrationDocument document, CommandContext commandContext) - Specified by:
batchMigrateProcessInstancesOfProcessDefinitionin interfaceProcessInstanceMigrationManager
-
batchMigrateProcessInstancesOfProcessDefinition
public Batch batchMigrateProcessInstancesOfProcessDefinition(String sourceProcDefId, ProcessInstanceMigrationDocument document, CommandContext commandContext) - Specified by:
batchMigrateProcessInstancesOfProcessDefinitionin interfaceProcessInstanceMigrationManager
-
migrateProcessInstancesOfProcessDefinition
public void migrateProcessInstancesOfProcessDefinition(String procDefKey, int procDefVer, String procDefTenantId, ProcessInstanceMigrationDocument document, CommandContext commandContext) - Specified by:
migrateProcessInstancesOfProcessDefinitionin interfaceProcessInstanceMigrationManager
-
migrateProcessInstancesOfProcessDefinition
public void migrateProcessInstancesOfProcessDefinition(String processDefinitionId, ProcessInstanceMigrationDocument document, CommandContext commandContext) - Specified by:
migrateProcessInstancesOfProcessDefinitionin interfaceProcessInstanceMigrationManager
-
migrateProcessInstance
public void migrateProcessInstance(String processInstanceId, ProcessInstanceMigrationDocument document, CommandContext commandContext) - Specified by:
migrateProcessInstancein interfaceProcessInstanceMigrationManager
-
doMigrateProcessInstance
protected void doMigrateProcessInstance(ProcessInstance processInstance, ProcessDefinition procDefToMigrateTo, ProcessInstanceMigrationDocument document, CommandContext commandContext) -
resolveActiveEmbeddedSubProcesses
protected Map<String,List<ExecutionEntity>> resolveActiveEmbeddedSubProcesses(String processInstanceId, CommandContext commandContext) - Specified by:
resolveActiveEmbeddedSubProcessesin classAbstractDynamicStateManager
-
isDirectFlowElementExecutionMigration
protected boolean isDirectFlowElementExecutionMigration(FlowElement currentFlowElement, FlowElement newFlowElement) - Specified by:
isDirectFlowElementExecutionMigrationin classAbstractDynamicStateManager
-
isDirectCallActivityExecutionMigration
protected boolean isDirectCallActivityExecutionMigration(FlowElement currentFlowElement, FlowElement newFlowElement) -
isDirectUserTaskExecutionMigration
protected boolean isDirectUserTaskExecutionMigration(FlowElement currentFlowElement, FlowElement newFlowElement) -
isDirectAsyncServiceTaskExecutionMigration
protected boolean isDirectAsyncServiceTaskExecutionMigration(FlowElement currentFlowElement, FlowElement newFlowElement) -
isDirectReceiveTaskExecutionMigration
protected boolean isDirectReceiveTaskExecutionMigration(FlowElement currentFlowElement, FlowElement newFlowElement) -
isDirectExternalWorkerServiceTaskExecutionMigration
protected boolean isDirectExternalWorkerServiceTaskExecutionMigration(FlowElement currentFlowElement, FlowElement newFlowElement) -
executeScript
protected void executeScript(ProcessInstance processInstance, ProcessDefinition procDefToMigrateTo, Script script, CommandContext commandContext) -
executeJavaDelegate
protected void executeJavaDelegate(ProcessInstance processInstance, ProcessDefinition procDefToMigrateTo, String preUpgradeJavaDelegate, CommandContext commandContext) -
executeExpression
protected void executeExpression(ProcessInstance processInstance, ProcessDefinition procDefToMigrateTo, String preUpgradeJavaDelegateExpression, CommandContext commandContext) -
prepareChangeStateBuilders
protected List<ChangeActivityStateBuilderImpl> prepareChangeStateBuilders(ExecutionEntity processInstanceExecution, ProcessDefinition procDefToMigrateTo, ProcessInstanceMigrationDocument document, CommandContext commandContext) -
isSameOrDefaultTenant
protected boolean isSameOrDefaultTenant(String processInstanceTenantId, String processDefinitionKey, String processDefinitionTenantId, ProcessEngineConfigurationImpl processEngineConfiguration) -
changeProcessDefinitionReferenceOfHistory
protected void changeProcessDefinitionReferenceOfHistory(ProcessInstance processInstance, ProcessDefinition processDefinition, CommandContext commandContext) -
resolveProcessDefinition
protected ProcessDefinition resolveProcessDefinition(ProcessInstanceMigrationDocument document, CommandContext commandContext) -
isActivityIdInProcessDefinitionModel
-
printProcessDefinitionIdentifierMessage
-
isSubProcessAncestorOfAnyExecution
protected boolean isSubProcessAncestorOfAnyExecution(String subProcessId, List<ExecutionEntity> currentExecutions) - Overrides:
isSubProcessAncestorOfAnyExecutionin classAbstractDynamicStateManager
-
isSubProcessContainerOfAnyFlowElement
protected boolean isSubProcessContainerOfAnyFlowElement(String subProcessId, Collection<MoveExecutionEntityContainer.FlowElementMoveEntry> moveToFlowElements) - Overrides:
isSubProcessContainerOfAnyFlowElementin classAbstractDynamicStateManager
-
referToSameCalledElement
-
hasSameLoopCharacteristics
-
hasSameSubProcessContent
-
splitMigrationMappingByCallActivitySubProcessScope
protected void splitMigrationMappingByCallActivitySubProcessScope(ActivityMigrationMapping activityMigrationMapping, HashMap<String, ActivityMigrationMapping> mainProcessActivityMappingByFromActivityId, HashMap<String, HashMap<String, ActivityMigrationMapping>> subProcessActivityMappingsByCallActivityIdAndFromActivityId) -
hasSameStringValue
-