Workflow Engine .NET

Assembly: OptimaJet.Workflow.BpmnPlugin

Class BpmnActionProvider

OptimaJet.Workflow.BpmnPlugin.Providers.BpmnActionProvider

Provides implementation for workflow actions and conditions specific to BPMN.

public class BpmnActionProvider : IWorkflowActionProvider

Inheritance

  • System.Object

Implemented Interfaces

Methods

public void ExecuteAction(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter) #
Execute action

Parameters

Name
Type
Description
name
String
Name of the action to execute
processInstance
ProcessInstance
Reference to ProcessInstance from which action is executed ProcessInstance
runtime
WorkflowRuntime
Reference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
actionParameter
String
Additional action parameter ActionDefinitionReference.ActionParameter
public Task ExecuteActionAsync(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter, CancellationToken token) #
Execute action asynchronously

Parameters

Name
Type
Description
name
String
Name of the action to execute
processInstance
ProcessInstance
Reference to ProcessInstance from which action is executed ProcessInstance
runtime
WorkflowRuntime
Reference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
actionParameter
String
Additional action parameter ActionDefinitionReference.ActionParameter
token
CancellationToken
Cancellation token

Returns

Type
Description
Task
public bool ExecuteCondition(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter) #
Check condition

Parameters

Name
Type
Description
name
String
Name of the condition to check
processInstance
ProcessInstance
Reference to ProcessInstance from which condition is checked ProcessInstance
runtime
WorkflowRuntime
Reference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
actionParameter
String
Additional action parameter ActionDefinitionReference.ActionParameter

Returns

Type
Description
Boolean
Condition result
public Task<bool> ExecuteConditionAsync(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter, CancellationToken token) #
Check condition asynchronously

Parameters

Name
Type
Description
name
String
Name of the condition to check
processInstance
ProcessInstance
Reference to ProcessInstance from which condition is checked ProcessInstance
runtime
WorkflowRuntime
Reference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
actionParameter
String
Additional action parameter ActionDefinitionReference.ActionParameter
token
CancellationToken
Cancellation token

Returns

Type
Description
Task<Boolean>
Condition result
public bool IsActionAsync(string name, string schemeCode) #
Checks whether the action should be called asynchronously

Parameters

Name
Type
Description
name
String
Name of the action
schemeCode
String
Scheme code

Returns

Type
Description
Boolean
public bool IsConditionAsync(string name, string schemeCode) #
Checks whether the condition should be called asynchronously

Parameters

Name
Type
Description
name
String
Name of the condition
schemeCode
String
Scheme code

Returns

Type
Description
Boolean
public List<string> GetActions(string schemeCode, NamesSearchType namesSearchType) #
Return all user actions names

Parameters

Name
Type
Description
schemeCode
String
Scheme code
namesSearchType
NamesSearchType

Returns

Type
Description
List<String>
List of actions names
public List<string> GetConditions(string schemeCode, NamesSearchType namesSearchType) #
Return all user conditions names

Parameters

Name
Type
Description
schemeCode
String
Scheme code
namesSearchType
NamesSearchType

Returns

Type
Description
List<String>
List of conditions names

Fields

public const string MergeConditionName = "BPMNMerge" #
public const string TerminateActionName = "BPMNTerminate" #