# Class ProcessVisitor OptimaJet.Workflow.BpmnPlugin.Import.ProcessVisitor The ProcessVisitor class is responsible for visiting and processing BPMN processes. Namespace: [OptimaJet.Workflow.BpmnPlugin.Import](https://api.workflowengine.io/bpmn-plugin/OptimaJet.Workflow.BpmnPlugin.Import/) ```csharp public class ProcessVisitor : BaseVisitor ``` ## Type Hierarchy - [BaseVisitor](https://api.workflowengine.io/bpmn-plugin/OptimaJet.Workflow.BpmnPlugin.Import/BaseVisitor/) - ProcessVisitor Current type ## Methods `public virtual List ConvertProcess(TProcess process, TDefinitions document, ProcessNameStrategy processNameStrategy = ProcessNameStrategy.NameOrId)` Converts a BPMN process into a list of converted processes based on the given definitions and process name strategy. ### Parameters | Name | Type | Description | | --- | --- | --- | | `process` | `TProcess` | The process to convert. | | `document` | `TDefinitions` | The BPMN definitions document. | | `processNameStrategy` | `ProcessNameStrategy` | The strategy for naming the process, either using its name or its ID. | ### Returns | Type | Description | | --- | --- | | `List` | A list of converted processes. | `protected virtual List ConvertSubprocess(TSubProcess subprocess, TDefinitions document)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `subprocess` | `TSubProcess` | | | `document` | `TDefinitions` | | ### Returns | Type | Description | | --- | --- | | `List` | | `protected virtual ConvertedProcess ConvertFlow(IEnumerable flow, string processName, TDefinitions document)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `flow` | `IEnumerable` | | | `processName` | `String` | | | `document` | `TDefinitions` | | ### Returns | Type | Description | | --- | --- | | `ConvertedProcess` | | `protected virtual ConvertedProcess ApplyDiagram(ConvertedProcess process, BpmnDiagram diagram, (int X, int Y) offset)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `process` | `ConvertedProcess` | | | `diagram` | `BpmnDiagram` | | | `offset` | `ValueTuple` | | ### Returns | Type | Description | | --- | --- | | `ConvertedProcess` | | `protected virtual ConvertedProcess SetAdditionalElementsCoordinates(ConvertedProcess convertedProcess)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `convertedProcess` | `ConvertedProcess` | | ### Returns | Type | Description | | --- | --- | | `ConvertedProcess` | | [Previous ProcessNameStrategy](https://api.workflowengine.io/bpmn-plugin/OptimaJet.Workflow.BpmnPlugin.Import/ProcessNameStrategy/) [Next SubprocessFlowVisitor](https://api.workflowengine.io/bpmn-plugin/OptimaJet.Workflow.BpmnPlugin.Import/SubprocessFlowVisitor/)