Class EmptyWorkflowActionProvider
OptimaJet.Workflow.Core.Runtime.EmptyWorkflowActionProvider
Provides the empty fallback implementation of IWorkflowActionProvider, representing the absence of configured workflow actions and conditions.
Namespace: OptimaJet.Workflow.Core.Runtime
public class EmptyWorkflowActionProvider : IWorkflowActionProviderType Hierarchy
- EmptyWorkflowActionProvider Current type
- Implemented interfaces
Properties
public static IWorkflowActionProvider Value { get; } #Gets the shared empty workflow action provider.
Methods
public void ExecuteAction(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter) #Executes an action.
Parameters
Name
Type
Description
nameStringName of the action to execute.
processInstanceProcessInstanceThe process instance from which the action is executed. ProcessInstance
Remarks
All arguments are ignored, and no action is executed.
public Task ExecuteActionAsync(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter, CancellationToken token) #Executes an action asynchronously.
Parameters
Name
Type
Description
nameStringName of the action to execute.
processInstanceProcessInstanceThe process instance from which the action is executed. ProcessInstance
tokenCancellationTokenCancellation token.
Returns
Type
Description
TaskA task that represents the asynchronous operation.
Exceptions
Type
Description
NotImplementedExceptionThe returned task always contains this exception because the provider has no asynchronous actions.
public bool ExecuteCondition(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter) #Executes a condition and returns the result.
Parameters
Name
Type
Description
nameStringName of the condition to check.
processInstanceProcessInstanceThe process instance from which the condition is checked. ProcessInstance
actionParameterStringAdditional condition parameter value. ActionDefinitionReference.ActionParameter
Returns
public Task<bool> ExecuteConditionAsync(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter, CancellationToken token) #Executes a condition asynchronously and returns the result.
Parameters
Name
Type
Description
nameStringName of the condition to check.
processInstanceProcessInstanceThe process instance from which the condition is checked. ProcessInstance
actionParameterStringAdditional condition parameter value. ActionDefinitionReference.ActionParameter
tokenCancellationTokenCancellation token.
Returns
Type
Description
Exceptions
Type
Description
NotImplementedExceptionThe returned task always contains this exception because the provider has no asynchronous conditions.
public bool IsActionAsync(string name, string schemeCode) #Checks whether an action should be executed asynchronously.
public bool IsConditionAsync(string name, string schemeCode) #Checks whether a condition should be evaluated asynchronously.
public List<string> GetActions(string schemeCode, NamesSearchType namesSearchType) #Returns action names for a scheme.
Parameters
Name
Type
Description
schemeCodeStringCode of the scheme for which action names are requested.
namesSearchTypeNamesSearchTypeThe name selection strategy.
Returns
Type
Description
List<String>A list of action names.
public List<string> GetConditions(string schemeCode, NamesSearchType namesSearchType) #Returns condition names for a scheme.
Parameters
Name
Type
Description
schemeCodeStringCode of the scheme for which condition names are requested.
namesSearchTypeNamesSearchTypeThe name selection strategy.
Returns
Type
Description
List<String>A list of condition names.
Remarks
The provider exposes no action or condition names and reports that none are asynchronous. A direct synchronous action call performs no work, and a direct synchronous condition call returns false. Asynchronous action and condition execution is not implemented; direct calls return faulted tasks.