Class MigratingInstanceParseContext
- java.lang.Object
-
- org.camunda.bpm.engine.impl.migration.instance.parser.MigratingInstanceParseContext
-
public class MigratingInstanceParseContext extends 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 Map<String,MigratingActivityInstance> activityInstances
-
compensationInstances
protected Map<String,MigratingEventScopeInstance> compensationInstances
-
migratingJobs
protected Map<String,MigratingJobInstance> migratingJobs
-
migratingExternalTasks
protected Map<String,MigratingExternalTaskInstance> migratingExternalTasks
-
eventSubscriptions
protected Collection<EventSubscriptionEntity> eventSubscriptions
-
incidents
protected Collection<IncidentEntity> incidents
-
jobs
protected Collection<JobEntity> jobs
-
tasks
protected Collection<TaskEntity> tasks
-
externalTasks
protected Collection<ExternalTaskEntity> externalTasks
-
variables
protected Collection<VariableInstanceEntity> variables
-
sourceProcessDefinition
protected ProcessDefinitionEntity sourceProcessDefinition
-
targetProcessDefinition
protected ProcessDefinitionEntity targetProcessDefinition
-
targetJobDefinitions
protected Map<String,List<JobDefinitionEntity>> targetJobDefinitions
-
mapping
protected ActivityExecutionTreeMapping mapping
-
instructionsBySourceScope
protected Map<String,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(Collection<JobEntity> jobs)
-
incidents
public MigratingInstanceParseContext incidents(Collection<IncidentEntity> incidents)
-
tasks
public MigratingInstanceParseContext tasks(Collection<TaskEntity> tasks)
-
externalTasks
public MigratingInstanceParseContext externalTasks(Collection<ExternalTaskEntity> externalTasks)
-
eventSubscriptions
public MigratingInstanceParseContext eventSubscriptions(Collection<EventSubscriptionEntity> eventSubscriptions)
-
targetJobDefinitions
public MigratingInstanceParseContext targetJobDefinitions(Collection<JobDefinitionEntity> jobDefinitions)
-
variables
public MigratingInstanceParseContext variables(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 Collection<MigratingActivityInstance> getMigratingActivityInstances()
-
getSourceProcessDefinition
public ProcessDefinitionImpl getSourceProcessDefinition()
-
getTargetProcessDefinition
public ProcessDefinitionImpl getTargetProcessDefinition()
-
getTargetActivity
public ActivityImpl getTargetActivity(MigrationInstruction instruction)
-
getTargetJobDefinition
public JobDefinitionEntity getTargetJobDefinition(String activityId, String jobHandlerType)
-
getMapping
public ActivityExecutionTreeMapping getMapping()
-
getInstructionFor
public MigrationInstruction getInstructionFor(String scopeId)
-
getMigratingActivityInstanceById
public MigratingActivityInstance getMigratingActivityInstanceById(String activityInstanceId)
-
getMigratingCompensationInstanceByExecutionId
public MigratingScopeInstance getMigratingCompensationInstanceByExecutionId(String id)
-
getMigratingJobInstanceById
public MigratingJobInstance getMigratingJobInstanceById(String jobId)
-
getMigratingExternalTaskInstanceById
public MigratingExternalTaskInstance getMigratingExternalTaskInstanceById(String externalTaskId)
-
findSingleMigrationInstruction
public MigrationInstruction findSingleMigrationInstruction(String sourceScopeId)
-
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
public void handleTransitionInstance(TransitionInstance transitionInstance)
-
validateNoEntitiesLeft
public void validateNoEntitiesLeft(MigratingProcessInstanceValidationReportImpl processInstanceReport)
-
ensureNoEntitiesAreLeft
public void ensureNoEntitiesAreLeft(String entityName, Collection<? extends DbEntity> dbEntities, MigratingProcessInstanceValidationReportImpl processInstanceReport)
-
-