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