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