Class BpmnConverterContext
OptimaJet.Workflow.BpmnPlugin.Import.BpmnConverterContext
Represents the context for converting BPMN elements into the workflow scheme.
Namespace: OptimaJet.Workflow.BpmnPlugin.Import
public class BpmnConverterContextInheritance
- System.Object
Constructors
public BpmnConverterContext(IProcessDefinitionBuilder builder, IEnumerable<TFlowElement> flowElement, TDefinitions bpmnDocument) #Represents the context for converting BPMN elements into the workflow scheme.
Parameters
Name
Type
Description
builderIProcessDefinitionBuilderThe IProcessDefinitionBuilder instance used to build the workflow scheme.
flowElementIEnumerable<TFlowElement>The collection of TFlowElement objects to be converted.
bpmnDocumentTDefinitionsThe TDefinitions object representing the BPMN document.
Properties
Name
Type
Builder #IProcessDefinitionBuilderThe IProcessDefinitionBuilder instance used to build the workflow scheme.
FlowElements #ImmutableList<TFlowElement>FlowElements is a collection of TFlowElement objects to be converted.
BpmnDocument #TDefinitionsGets the BPMN document that contains the definitions and elements of the BPMN model.
Issues #ImmutableList<String>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
idStringThe ID of the TMessage to be found.
Returns
Type
Description
TMessageThe 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
idStringThe ID of the TFlowNode to be retrieved.
Returns
Type
Description
TFlowNodeThe 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
idStringThe ID of the TSequenceFlow to be retrieved.
Returns
Type
Description
TSequenceFlowThe 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
messageStringThe message describing the issue or warning to be logged.