# Class BpmnConverterContext OptimaJet.Workflow.BpmnPlugin.Import.BpmnConverterContext Represents the context for converting BPMN elements into the workflow scheme. Namespace: [OptimaJet.Workflow.BpmnPlugin.Import](https://api.workflowengine.io/bpmn-plugin/OptimaJet.Workflow.BpmnPlugin.Import/) ```csharp public class BpmnConverterContext ``` ## Constructors `public BpmnConverterContext(IProcessDefinitionBuilder builder, IEnumerable flowElement, TDefinitions bpmnDocument)` Represents the context for converting BPMN elements into the workflow scheme. ### Parameters | Name | Type | Description | | --- | --- | --- | | `builder` | `IProcessDefinitionBuilder` | The IProcessDefinitionBuilder instance used to build the workflow scheme. | | `flowElement` | `IEnumerable` | The collection of TFlowElement objects to be converted. | | `bpmnDocument` | `TDefinitions` | The TDefinitions object representing the BPMN document. | ## Properties `public IProcessDefinitionBuilder Builder { get; }` The IProcessDefinitionBuilder instance used to build the workflow scheme. `public ImmutableList FlowElements { get; }` FlowElements is a collection of TFlowElement objects to be converted. `public TDefinitions BpmnDocument { get; }` Gets the BPMN document that contains the definitions and elements of the BPMN model. `public ImmutableList Issues { get; }` Gets the list of issues encountered during the BPMN conversion process. ## Methods `public TMessage? FindMessage(string? id)` Searches for a TMessage object in the BpmnDocument's RootElement collection that matches the provided ID. ### Parameters | Name | Type | Description | | --- | --- | --- | | `id` | `String` | The ID of the TMessage to be found. | ### Returns | Type | Description | | --- | --- | | `TMessage` | The TMessage object that matches the ID, or null if no matching object is found. | `public TFlowNode? GetFlowNode(string id)` Retrieves a TFlowNode object from the FlowElements collection based on the provided ID. ### Parameters | Name | Type | Description | | --- | --- | --- | | `id` | `String` | The ID of the TFlowNode to be retrieved. | ### Returns | Type | Description | | --- | --- | | `TFlowNode` | The TFlowNode object with the specified ID, or null if no matching element is found. | `public TSequenceFlow? GetSequenceFlow(string id)` Retrieves a TSequenceFlow object from the FlowElements collection based on the provided ID. ### Parameters | Name | Type | Description | | --- | --- | --- | | `id` | `String` | The ID of the TSequenceFlow to be retrieved. | ### Returns | Type | Description | | --- | --- | | `TSequenceFlow` | The TSequenceFlow object with the specified ID, or null if no matching element is found. | `public void LogIssue(string message)` Logs an issue or warning message encountered during the conversion process. ### Parameters | Name | Type | Description | | --- | --- | --- | | `message` | `String` | The message describing the issue or warning to be logged. | [Previous BpmnConverterBuilder](https://api.workflowengine.io/bpmn-plugin/OptimaJet.Workflow.BpmnPlugin.Import/BpmnConverterBuilder/) [Next BpmnConverterSettings](https://api.workflowengine.io/bpmn-plugin/OptimaJet.Workflow.BpmnPlugin.Import/BpmnConverterSettings/)