# Class GatewayNodeVisitor OptimaJet.Workflow.BpmnPlugin.Import.GatewayNodeVisitor The GatewayNodeVisitor class is responsible for visiting and processing BPMN gateways. Namespace: [OptimaJet.Workflow.BpmnPlugin.Import](https://api.workflowengine.io/bpmn-plugin/OptimaJet.Workflow.BpmnPlugin.Import/) ```csharp public class GatewayNodeVisitor : BaseNodeVisitor ``` ## Type Hierarchy - [BaseVisitor](https://api.workflowengine.io/bpmn-plugin/OptimaJet.Workflow.BpmnPlugin.Import/BaseVisitor/) - [BaseNodeVisitor](https://api.workflowengine.io/bpmn-plugin/OptimaJet.Workflow.BpmnPlugin.Import/BaseNodeVisitor/) - GatewayNodeVisitor Current type ## Methods `public void AddGateway(TGateway gateway, BpmnConverterContext context)` Adds an activity representing the specified gateway into the process definition. ### Parameters | Name | Type | Description | | --- | --- | --- | | `gateway` | `TGateway` | Gateway to convert. | | `context` | `BpmnConverterContext` | Context for the BPMN conversion process. | `protected virtual void AddExclusiveGateway(TExclusiveGateway exclusiveGateway, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `exclusiveGateway` | `TExclusiveGateway` | | | `context` | `BpmnConverterContext` | | `protected virtual void AddExclusiveGatewayExtensions(IActivityBuilder activityBuilder, TExclusiveGateway exclusiveGateway, TExtensionElements extensionElements, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `activityBuilder` | `IActivityBuilder` | | | `exclusiveGateway` | `TExclusiveGateway` | | | `extensionElements` | `TExtensionElements` | | | `context` | `BpmnConverterContext` | | `protected virtual void AddParallelGateway(TParallelGateway parallelGateway, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `parallelGateway` | `TParallelGateway` | | | `context` | `BpmnConverterContext` | | `protected virtual void AddParallelGatewayExtensions(IActivityBuilder activityBuilder, TParallelGateway parallelGateway, TExtensionElements extensionElements, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `activityBuilder` | `IActivityBuilder` | | | `parallelGateway` | `TParallelGateway` | | | `extensionElements` | `TExtensionElements` | | | `context` | `BpmnConverterContext` | | `protected virtual void AddEventBasedGateway(TEventBasedGateway eventBasedGateway, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `eventBasedGateway` | `TEventBasedGateway` | | | `context` | `BpmnConverterContext` | | `protected virtual void AddEventBasedGatewayExtensions(IActivityBuilder activityBuilder, TEventBasedGateway eventBasedGateway, TExtensionElements extensionElements, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `activityBuilder` | `IActivityBuilder` | | | `eventBasedGateway` | `TEventBasedGateway` | | | `extensionElements` | `TExtensionElements` | | | `context` | `BpmnConverterContext` | | `protected virtual void AddInclusiveGateway(TInclusiveGateway inclusiveGateway, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `inclusiveGateway` | `TInclusiveGateway` | | | `context` | `BpmnConverterContext` | | `protected virtual void AddInclusiveGatewayExtensions(IActivityBuilder activityBuilder, TInclusiveGateway inclusiveGateway, TExtensionElements extensionElements, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `activityBuilder` | `IActivityBuilder` | | | `inclusiveGateway` | `TInclusiveGateway` | | | `extensionElements` | `TExtensionElements` | | | `context` | `BpmnConverterContext` | | `protected virtual void AddComplexGateway(TComplexGateway complexGateway, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `complexGateway` | `TComplexGateway` | | | `context` | `BpmnConverterContext` | | [Previous GatewayFlowVisitor](https://api.workflowengine.io/bpmn-plugin/OptimaJet.Workflow.BpmnPlugin.Import/GatewayFlowVisitor/) [Next ProcessNameStrategy](https://api.workflowengine.io/bpmn-plugin/OptimaJet.Workflow.BpmnPlugin.Import/ProcessNameStrategy/)