# Class ProviderProviders OptimaJet.Workflow.Plugins.CustomWorkflowProviders.ProviderProviders Namespace: [OptimaJet.Workflow.Plugins.CustomWorkflowProviders](https://api.workflowengine.io/core/OptimaJet.Workflow.Plugins.CustomWorkflowProviders/) ```csharp public abstract class ProviderProviders : ICustomMixProvider, ICustomWorkflowActionProvider, IWorkflowActionProvider, IDisableProvider, ICustomDesignerParameterFormatProvider, IDesignerParameterFormatProvider, ICustomActivityProvider, ICustomConditionProvider where TEnumProviders : struct ``` ## Type Hierarchy - ProviderProviders Current type - [FilePlugin](https://api.workflowengine.io/files-plugin/OptimaJet.Workflow.Plugins/FilePlugin/) - [FTPProvider](https://api.workflowengine.io/files-plugin/OptimaJet.Workflow.Plugins.FilesPlugin.FTPProvider/FTPProvider/) - Implemented interfaces - [ICustomMixProvider](https://api.workflowengine.io/core/OptimaJet.Workflow.Plugins.CustomWorkflowProviders/ICustomMixProvider/) - [ICustomActivityProvider](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/ICustomActivityProvider/) - [ICustomConditionProvider](https://api.workflowengine.io/core/OptimaJet.Workflow.Plugins.CustomWorkflowProviders/ICustomConditionProvider/) - [ICustomDesignerParameterFormatProvider](https://api.workflowengine.io/core/OptimaJet.Workflow.Plugins.CustomWorkflowProviders/ICustomDesignerParameterFormatProvider/) - [IDesignerParameterFormatProvider](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/IDesignerParameterFormatProvider/) - [ICustomWorkflowActionProvider](https://api.workflowengine.io/core/OptimaJet.Workflow.Plugins.CustomWorkflowProviders/ICustomWorkflowActionProvider/) - [IDisableProvider](https://api.workflowengine.io/core/OptimaJet.Workflow.Plugins.CustomWorkflowProviders/IDisableProvider/) - [IWorkflowActionProvider](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/IWorkflowActionProvider/) ## Properties `public bool Disabled { get; set; }` ## Methods `public List GetFormat(CodeActionType type, string name, string schemeCode)` Gets the ordered form-field definitions for a named action, condition, or rule. ### Parameters | Name | Type | Description | | --- | --- | --- | | `type` | `CodeActionType` | The parameter usage context: [CodeActionType.Action](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CodeActionType/), [CodeActionType.Condition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CodeActionType/), [CodeActionType.RuleCheck](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CodeActionType/), or [CodeActionType.RuleGet](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CodeActionType/). | | `name` | `String` | The action, condition, or rule name selected in the Designer. | | `schemeCode` | `String` | The current process scheme code, which can be used to provide scheme-specific fields. The value may be [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when the format is requested without a process scheme context. | ### Returns | Type | Description | | --- | --- | | `List` | An ordered list containing one [CodeActionParameterDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CodeActionParameterDefinition/) per form field. Returning [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) or an empty list indicates that no structured parameter editor is defined; the Designer then uses its raw JSON editor. | `public void ExcludeAction_(string actionName, ExcludeRule excludeRule = null)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `actionName` | `String` | | | `excludeRule` | `ExcludeRule` | | `public void ExcludeCondition_(string conditionName, ExcludeRule excludeRule = null)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `conditionName` | `String` | | | `excludeRule` | `ExcludeRule` | | `public void ExcludeAction(string actionName, ExcludeRule excludeRule = null)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `actionName` | `String` | | | `excludeRule` | `ExcludeRule` | | `public void ExcludeCondition(string conditionName, ExcludeRule excludeRule = null)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `conditionName` | `String` | | | `excludeRule` | `ExcludeRule` | | `public void ExecuteAction(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter)` Executes an action. ### Parameters | Name | Type | Description | | --- | --- | --- | | `name` | `String` | Name of the action to execute. | | `processInstance` | `ProcessInstance` | The process instance from which the action is executed. [ProcessInstance](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ProcessInstance/) | | `runtime` | `WorkflowRuntime` | The runtime instance that manages the process instance. [WorkflowRuntime](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/WorkflowRuntime/) | | `actionParameter` | `String` | Additional action parameter value. [ActionDefinitionReference.ActionParameter](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ActionDefinitionReference/) | `public Task ExecuteActionAsync(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter, CancellationToken token)` Executes an action asynchronously. ### Parameters | Name | Type | Description | | --- | --- | --- | | `name` | `String` | Name of the action to execute. | | `processInstance` | `ProcessInstance` | The process instance from which the action is executed. [ProcessInstance](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ProcessInstance/) | | `runtime` | `WorkflowRuntime` | The runtime instance that manages the process instance. [WorkflowRuntime](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/WorkflowRuntime/) | | `actionParameter` | `String` | Additional action parameter value. [ActionDefinitionReference.ActionParameter](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ActionDefinitionReference/) | | `token` | `CancellationToken` | Cancellation token. | ### Returns | Type | Description | | --- | --- | | `Task` | A task that represents the asynchronous operation. | `public bool ExecuteCondition(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter)` Executes a condition and returns the result. ### Parameters | Name | Type | Description | | --- | --- | --- | | `name` | `String` | Name of the condition to check. | | `processInstance` | `ProcessInstance` | The process instance from which the condition is checked. [ProcessInstance](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ProcessInstance/) | | `runtime` | `WorkflowRuntime` | The runtime instance that manages the process instance. [WorkflowRuntime](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/WorkflowRuntime/) | | `actionParameter` | `String` | Additional condition parameter value. [ActionDefinitionReference.ActionParameter](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ActionDefinitionReference/) | ### Returns | Type | Description | | --- | --- | | `Boolean` | [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if the condition evaluates to true; otherwise, [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool). | `public Task ExecuteConditionAsync(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter, CancellationToken token)` Executes a condition asynchronously and returns the result. ### Parameters | Name | Type | Description | | --- | --- | --- | | `name` | `String` | Name of the condition to check. | | `processInstance` | `ProcessInstance` | The process instance from which the condition is checked. [ProcessInstance](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ProcessInstance/) | | `runtime` | `WorkflowRuntime` | The runtime instance that manages the process instance. [WorkflowRuntime](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/WorkflowRuntime/) | | `actionParameter` | `String` | Additional condition parameter value. [ActionDefinitionReference.ActionParameter](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ActionDefinitionReference/) | | `token` | `CancellationToken` | Cancellation token. | ### Returns | Type | Description | | --- | --- | | `Task` | A task that resolves to [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if the condition evaluates to true; otherwise, [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool). | `public List GetActions(string schemeCode, NamesSearchType namesSearchType)` Returns action names for a scheme. ### Parameters | Name | Type | Description | | --- | --- | --- | | `schemeCode` | `String` | Code of the scheme for which action names are requested. | | `namesSearchType` | `NamesSearchType` | The name selection strategy. | ### Returns | Type | Description | | --- | --- | | `List` | A list of action names. | `public List GetConditions(string schemeCode, NamesSearchType namesSearchType)` Returns condition names for a scheme. ### Parameters | Name | Type | Description | | --- | --- | --- | | `schemeCode` | `String` | Code of the scheme for which condition names are requested. | | `namesSearchType` | `NamesSearchType` | The name selection strategy. | ### Returns | Type | Description | | --- | --- | | `List` | A list of condition names. | `public bool IsActionAsync(string name, string schemeCode)` Checks whether an action should be executed asynchronously. ### Parameters | Name | Type | Description | | --- | --- | --- | | `name` | `String` | Name of the action. | | `schemeCode` | `String` | Code of the scheme that the action belongs to. | ### Returns | Type | Description | | --- | --- | | `Boolean` | [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if the action is asynchronous; otherwise, [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool). | `public bool IsConditionAsync(string name, string schemeCode)` Checks whether a condition should be evaluated asynchronously. ### Parameters | Name | Type | Description | | --- | --- | --- | | `name` | `String` | Name of the condition. | | `schemeCode` | `String` | Code of the scheme that the condition belongs to. | ### Returns | Type | Description | | --- | --- | | `Boolean` | [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if the condition is asynchronous; otherwise, [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool). | `public List GetCustomActivities()` Gets the custom activities exposed by the provider. ### Returns | Type | Description | | --- | --- | | `List` | A list of custom [ActivityBase](https://api.workflowengine.io/core/OptimaJet.Workflow.Core/ActivityBase/) instances available from this provider. | `public List GetCustomConditions()` ### Returns | Type | Description | | --- | --- | | `List` | | ## Fields `protected Dictionary Providers` [Previous IDisableProvider](https://api.workflowengine.io/core/OptimaJet.Workflow.Plugins.CustomWorkflowProviders/IDisableProvider/) [Next WorkflowActionAndDesignerParameterFormatProvider](https://api.workflowengine.io/core/OptimaJet.Workflow.Plugins.CustomWorkflowProviders/WorkflowActionAndDesignerParameterFormatProvider-TEnumActions-TEnumActionsAsync-TEnumConditions-TEnumConditionsAsync/)