Workflow Engine .NET

Assembly: OptimaJet.Workflow.BpmnPlugin

Class BpmnConverterContext

OptimaJet.Workflow.BpmnPlugin.Import.BpmnConverterContext

Represents the context for converting BPMN elements into the workflow scheme.

public class BpmnConverterContext

Inheritance

  • 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
builder
IProcessDefinitionBuilder
The IProcessDefinitionBuilder instance used to build the workflow scheme.
flowElement
IEnumerable<TFlowElement>
The collection of TFlowElement objects to be converted.
bpmnDocument
TDefinitions
The TDefinitions object representing the BPMN document.

Properties

Name
Type
Builder #
IProcessDefinitionBuilder
The IProcessDefinitionBuilder instance used to build the workflow scheme.
FlowElements #
ImmutableList<TFlowElement>
FlowElements is a collection of TFlowElement objects to be converted.
BpmnDocument #
TDefinitions
Gets 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
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.