Workflow Engine .NET

Assembly: OptimaJet.Workflow.BpmnPlugin

Class BpmnConverterBuilder

OptimaJet.Workflow.BpmnPlugin.Import.BpmnConverterBuilder

Builder class for creating instances of BpmnConverter. Allows to set custom visitors for different BPMN elements.

public class BpmnConverterBuilder

Inheritance

  • System.Object

Methods

public static BpmnConverterBuilder Create() #
Creates a new instance of BpmnConverterBuilder.

Returns

Type
Description
BpmnConverterBuilder
A new instance of BpmnConverterBuilder.
public BpmnConverterBuilder WithCustomTaskNodeVisitor(TaskNodeVisitor customTaskNodeVisitor) #
Sets a custom task node visitor for the BpmnConverterBuilder. The task node visitor is responsible for transforming BPMN task nodes into workflow activities.

Parameters

Name
Type
Description
customTaskNodeVisitor
TaskNodeVisitor
The custom task node visitor to be set.

Returns

Type
Description
BpmnConverterBuilder
The BpmnConverterBuilder instance with the custom task node visitor set.
public BpmnConverterBuilder WithCustomGatewayNodeVisitor(GatewayNodeVisitor customGatewayNodeVisitor) #
Sets a custom gateway node visitor for the BpmnConverterBuilder. The gateway node visitor is responsible for transforming BPMN gateway nodes into workflow activities.

Parameters

Name
Type
Description
customGatewayNodeVisitor
GatewayNodeVisitor
The custom gateway node visitor to be set.

Returns

Type
Description
BpmnConverterBuilder
The BpmnConverterBuilder instance with the custom gateway node visitor set.
public BpmnConverterBuilder WithCustomEventNodeVisitor(EventNodeVisitor customEventNodeVisitor) #
Sets a custom event node visitor for the BpmnConverterBuilder. The event node visitor is responsible for transforming BPMN event nodes into workflow activities.

Parameters

Name
Type
Description
customEventNodeVisitor
EventNodeVisitor
The custom event node visitor to be set.

Returns

Type
Description
BpmnConverterBuilder
The BpmnConverterBuilder instance with the custom event node visitor set.
public BpmnConverterBuilder WithCustomSubprocessNodeVisitor(SubprocessNodeVisitor customSubprocessNodeVisitor) #
Sets a custom subprocess node visitor for the BpmnConverterBuilder. The subprocess node visitor is responsible for transforming BPMN subprocess nodes into workflow activities.

Parameters

Name
Type
Description
customSubprocessNodeVisitor
SubprocessNodeVisitor
The custom subprocess node visitor to be set.

Returns

Type
Description
BpmnConverterBuilder
The BpmnConverterBuilder instance with the custom subprocess node visitor set.
public BpmnConverterBuilder WithCustomCallActivityNodeVisitor(CallActivityNodeVisitor customCallActivityNodeVisitor) #
Sets a custom call activity node visitor for the BpmnConverterBuilder. The call activity node visitor is responsible for transforming BPMN call activity nodes into workflow activities.

Parameters

Name
Type
Description
customCallActivityNodeVisitor
CallActivityNodeVisitor
The custom call activity node visitor to be set.

Returns

Type
Description
BpmnConverterBuilder
The BpmnConverterBuilder instance with the custom call activity node visitor set.
public BpmnConverterBuilder WithCustomTaskFlowVisitor(TaskFlowVisitor customTaskFlowVisitor) #
Sets a custom task flow visitor for the BpmnConverterBuilder. The task flow visitor is responsible for adding outgoing and updating incoming transitions for BPMN task nodes based on the BPMN sequence flows.

Parameters

Name
Type
Description
customTaskFlowVisitor
TaskFlowVisitor
The custom task flow visitor to set.

Returns

Type
Description
BpmnConverterBuilder
The BpmnConverterBuilder instance with the custom task flow visitor set.
public BpmnConverterBuilder WithCustomGatewayFlowVisitor(GatewayFlowVisitor customGatewayFlowVisitor) #
Sets a custom gateway flow visitor for the BpmnConverterBuilder. The gateway flow visitor is responsible for adding outgoing and updating incoming transitions for BPMN gateway nodes based on the BPMN sequence flows.

Parameters

Name
Type
Description
customGatewayFlowVisitor
GatewayFlowVisitor
The custom gateway flow visitor to be added.

Returns

Type
Description
BpmnConverterBuilder
The BpmnConverterBuilder instance with the custom gateway flow visitor set.
public BpmnConverterBuilder WithCustomEventFlowVisitor(EventFlowVisitor customEventFlowVisitor) #
Sets a custom event flow visitor for the BpmnConverterBuilder. The event flow visitor is responsible for adding outgoing and updating incoming transitions for BPMN event nodes based on the BPMN sequence flows.

Parameters

Name
Type
Description
customEventFlowVisitor
EventFlowVisitor
The custom event flow visitor to be set.

Returns

Type
Description
BpmnConverterBuilder
The BpmnConverterBuilder instance with the custom event flow visitor set.
public BpmnConverterBuilder WithCustomSubprocessFlowVisitor(SubprocessFlowVisitor customSubprocessFlowVisitor) #
Sets a custom subprocess flow visitor for the BpmnConverterBuilder. The subprocess flow visitor is responsible for adding outgoing and updating incoming transitions for BPMN subprocess nodes based on the BPMN sequence flows.

Parameters

Name
Type
Description
customSubprocessFlowVisitor
SubprocessFlowVisitor
The custom subprocess flow visitor to be set.

Returns

Type
Description
BpmnConverterBuilder
The BpmnConverterBuilder instance with the custom subprocess flow visitor set.
public BpmnConverterBuilder WithCustomCallActivityFlowVisitor(CallActivityFlowVisitor customCallActivityFlowVisitor) #
Sets a custom call activity flow visitor for the BpmnConverterBuilder. The call activity flow visitor is responsible for adding outgoing and updating incoming transitions for BPMN call activity nodes based on the BPMN sequence flows.

Parameters

Name
Type
Description
customCallActivityFlowVisitor
CallActivityFlowVisitor
The custom call activity flow visitor to be set.

Returns

Type
Description
BpmnConverterBuilder
The BpmnConverterBuilder instance with the custom call activity flow visitor set.
public BpmnConverterBuilder WithCustomProcessVisitor(ProcessVisitor processVisitor) #
Sets a custom process visitor for the BpmnConverterBuilder. The process visitor is responsible for converting BPMN processes and subprocesses into workflow processes.

Parameters

Name
Type
Description
processVisitor
ProcessVisitor
The custom process visitor to be set.

Returns

Type
Description
BpmnConverterBuilder
The BpmnConverterBuilder instance with the custom process visitor set.
public BpmnConverter Build(BpmnConverterSettings? settings = null) #
Builds an instance of the BpmnConverter.

Parameters

Name
Type
Description
settings
BpmnConverterSettings

Returns

Type
Description
BpmnConverter
An instance of BpmnConverter.