Workflow Engine .NET

Assembly: OptimaJet.Workflow.BpmnPlugin

Class BpmnElementsExtensions

OptimaJet.Workflow.BpmnPlugin.Import.BpmnElementsExtensions

Provides extension methods for BPMN elements such as TCatchEvent, TGateway, and TEventDefinition.

public static class BpmnElementsExtensions

Inheritance

  • System.Object

Methods

public static bool IsMessageCatchEvent(this TCatchEvent catchEvent) #
Determines whether the specified catch event is a message catch event.

Parameters

Name
Type
Description
catchEvent
TCatchEvent
The catch event to check.

Returns

Type
Description
Boolean
True if the catch event contains a message event definition; otherwise, false.
public static bool IsTimerCatchEvent(this TCatchEvent catchEvent) #
Determines whether the specified catch event is a timer catch event.

Parameters

Name
Type
Description
catchEvent
TCatchEvent
The catch event to check.

Returns

Type
Description
Boolean
True if the catch event contains a timer event definition; otherwise, false.
public static string GetReadableName(this TGateway gateway, bool lowerCase = false) #
Gets the human-readable name of the specified gateway.

Parameters

Name
Type
Description
gateway
TGateway
The gateway to get the readable name for.
lowerCase
Boolean
If set to true, the name will be returned in lowercase.

Returns

Type
Description
String
The human-readable name of the gateway.
public static string GetReadableName(this TEventDefinition eventDefinition, bool lowerCase = false) #
Retrieves a human-readable name for the specified event definition.

Parameters

Name
Type
Description
eventDefinition
TEventDefinition
The event definition to get the readable name for.
lowerCase
Boolean
If true, the returned name will be in lowercase.

Returns

Type
Description
String
The human-readable name of the event definition.
public static string GetReadableName(this TEvent catchEvent, bool lowerCase = false) #
Gets a human-readable name for the specified catch event.

Parameters

Name
Type
Description
catchEvent
TEvent
The catch event whose readable name is to be retrieved.
lowerCase
Boolean
If set to true, the readable name will be returned in lowercase.

Returns

Type
Description
String
The human-readable name of the catch event.
public static string GetReadableName(this TTask task, bool lowerCase = false) #
Gets a human-readable name for the specified task.

Parameters

Name
Type
Description
task
TTask
The task whose readable name is to be retrieved.
lowerCase
Boolean
If set to true, the readable name will be returned in lowercase.

Returns

Type
Description
String
The human-readable name of the task.
public static bool IsPartOfEventBasedGateway(this TFlowNode flowNode, BpmnConverterContext context) #
Determines whether the specified flow node is part of an EventBasedGateway.

Parameters

Name
Type
Description
flowNode
TFlowNode
The flow node to check.
context
BpmnConverterContext
The BPMN converter context containing the flow elements.

Returns

Type
Description
Boolean
True if the flow node is part of an EventBasedGateway; otherwise, false.