Class MigratingInstanceParseContext
java.lang.Object
org.camunda.bpm.engine.impl.migration.instance.parser.MigratingInstanceParseContext
- Author:
- Thorben Lindhauer
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,
MigratingActivityInstance> protected Map<String,
MigratingEventScopeInstance> protected Collection<EventSubscriptionEntity>
protected Collection<ExternalTaskEntity>
protected Collection<IncidentEntity>
protected Map<String,
List<MigrationInstruction>> protected Collection<JobEntity>
protected ActivityExecutionTreeMapping
protected Map<String,
MigratingExternalTaskInstance> protected Map<String,
MigratingJobInstance> protected MigratingProcessInstance
protected MigratingInstanceParser
protected ProcessDefinitionEntity
protected Map<String,
List<JobDefinitionEntity>> protected ProcessDefinitionEntity
protected Collection<TaskEntity>
protected Collection<VariableInstanceEntity>
-
Constructor Summary
ConstructorDescriptionMigratingInstanceParseContext
(MigratingInstanceParser parser, MigrationPlan migrationPlan, ExecutionEntity processInstance, ProcessDefinitionEntity targetProcessDefinition) -
Method Summary
Modifier and TypeMethodDescriptionvoid
consume
(EventSubscriptionEntity eventSubscription) void
consume
(ExternalTaskEntity externalTask) void
consume
(IncidentEntity incident) void
void
consume
(TaskEntity task) void
consume
(VariableInstanceEntity variableInstance) void
ensureNoEntitiesAreLeft
(String entityName, Collection<? extends DbEntity> dbEntities, MigratingProcessInstanceValidationReportImpl processInstanceReport) eventSubscriptions
(Collection<EventSubscriptionEntity> eventSubscriptions) externalTasks
(Collection<ExternalTaskEntity> externalTasks) findSingleMigrationInstruction
(String sourceScopeId) getInstructionFor
(String scopeId) getMigratingActivityInstanceById
(String activityInstanceId) getMigratingExternalTaskInstanceById
(String externalTaskId) getTargetActivity
(MigrationInstruction instruction) getTargetJobDefinition
(String activityId, String jobHandlerType) void
handleDependentActivityInstanceJobs
(MigratingActivityInstance migratingInstance, List<JobEntity> jobs) void
handleDependentEventSubscriptions
(MigratingActivityInstance migratingInstance, List<EventSubscriptionEntity> eventSubscriptions) void
handleDependentTransitionInstanceJobs
(MigratingTransitionInstance migratingInstance, List<JobEntity> jobs) void
handleDependentVariables
(MigratingProcessElementInstance migratingInstance, List<VariableInstanceEntity> variables) void
handleTransitionInstance
(TransitionInstance transitionInstance) incidents
(Collection<IncidentEntity> incidents) jobs
(Collection<JobEntity> jobs) protected Map<String,
List<MigrationInstruction>> organizeInstructionsBySourceScope
(MigrationPlan migrationPlan) void
submit
(MigratingActivityInstance activityInstance) void
submit
(MigratingEventScopeInstance compensationInstance) void
submit
(MigratingExternalTaskInstance externalTask) void
targetJobDefinitions
(Collection<JobDefinitionEntity> jobDefinitions) tasks
(Collection<TaskEntity> tasks) void
validateNoEntitiesLeft
(MigratingProcessInstanceValidationReportImpl processInstanceReport) variables
(Collection<VariableInstanceEntity> variables)
-
Field Details
-
migratingProcessInstance
-
activityInstances
-
compensationInstances
-
migratingJobs
-
migratingExternalTasks
-
eventSubscriptions
-
incidents
-
jobs
-
tasks
-
externalTasks
-
variables
-
sourceProcessDefinition
-
targetProcessDefinition
-
targetJobDefinitions
-
mapping
-
instructionsBySourceScope
-
parser
-
-
Constructor Details
-
MigratingInstanceParseContext
public MigratingInstanceParseContext(MigratingInstanceParser parser, MigrationPlan migrationPlan, ExecutionEntity processInstance, ProcessDefinitionEntity targetProcessDefinition)
-
-
Method Details
-
jobs
-
incidents
-
tasks
-
externalTasks
-
eventSubscriptions
public MigratingInstanceParseContext eventSubscriptions(Collection<EventSubscriptionEntity> eventSubscriptions) -
targetJobDefinitions
public MigratingInstanceParseContext targetJobDefinitions(Collection<JobDefinitionEntity> jobDefinitions) -
variables
-
submit
-
submit
-
submit
-
submit
-
consume
-
consume
-
consume
-
consume
-
consume
-
consume
-
getMigratingProcessInstance
-
getMigratingActivityInstances
-
getSourceProcessDefinition
-
getTargetProcessDefinition
-
getTargetActivity
-
getTargetJobDefinition
-
getMapping
-
getInstructionFor
-
getMigratingActivityInstanceById
-
getMigratingCompensationInstanceByExecutionId
-
getMigratingJobInstanceById
-
getMigratingExternalTaskInstanceById
-
findSingleMigrationInstruction
-
organizeInstructionsBySourceScope
protected Map<String,List<MigrationInstruction>> organizeInstructionsBySourceScope(MigrationPlan migrationPlan) -
handleDependentActivityInstanceJobs
public void handleDependentActivityInstanceJobs(MigratingActivityInstance migratingInstance, List<JobEntity> jobs) -
handleDependentTransitionInstanceJobs
public void handleDependentTransitionInstanceJobs(MigratingTransitionInstance migratingInstance, List<JobEntity> jobs) -
handleDependentEventSubscriptions
public void handleDependentEventSubscriptions(MigratingActivityInstance migratingInstance, List<EventSubscriptionEntity> eventSubscriptions) -
handleDependentVariables
public void handleDependentVariables(MigratingProcessElementInstance migratingInstance, List<VariableInstanceEntity> variables) -
handleTransitionInstance
-
validateNoEntitiesLeft
public void validateNoEntitiesLeft(MigratingProcessInstanceValidationReportImpl processInstanceReport) -
ensureNoEntitiesAreLeft
public void ensureNoEntitiesAreLeft(String entityName, Collection<? extends DbEntity> dbEntities, MigratingProcessInstanceValidationReportImpl processInstanceReport)
-