Class BpmnElementsExtensions
OptimaJet.Workflow.BpmnPlugin.Import.BpmnElementsExtensions
Provides extension methods for BPMN elements such as TCatchEvent, TGateway, and TEventDefinition.
Namespace: OptimaJet.Workflow.BpmnPlugin.Import
public static class BpmnElementsExtensionsInheritance
- 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
catchEventTCatchEventThe catch event to check.
Returns
Type
Description
BooleanTrue 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
catchEventTCatchEventThe catch event to check.
Returns
Type
Description
BooleanTrue 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
gatewayTGatewayThe gateway to get the readable name for.
lowerCaseBooleanIf set to true, the name will be returned in lowercase.
Returns
Type
Description
StringThe 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
eventDefinitionTEventDefinitionThe event definition to get the readable name for.
lowerCaseBooleanIf true, the returned name will be in lowercase.
Returns
Type
Description
StringThe 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
catchEventTEventThe catch event whose readable name is to be retrieved.
lowerCaseBooleanIf set to true, the readable name will be returned in lowercase.
Returns
Type
Description
StringThe 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
taskTTaskThe task whose readable name is to be retrieved.
lowerCaseBooleanIf set to true, the readable name will be returned in lowercase.
Returns
Type
Description
StringThe 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
flowNodeTFlowNodeThe flow node to check.
contextBpmnConverterContextThe BPMN converter context containing the flow elements.
Returns
Type
Description
BooleanTrue if the flow node is part of an EventBasedGateway; otherwise, false.