Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

Class WorkflowActionProvider<TEnumActions, TEnumActionsAsync, TEnumConditions, TEnumConditionsAsync>

Inheritance

↳ object

    ↳ WorkflowActionProvider<TEnumActions, TEnumActionsAsync, TEnumConditions, TEnumConditionsAsync>

        ↳ WorkflowActionAndDesignerParameterFormatProvider<TEnumActions, TEnumActionsAsync, TEnumConditions, TEnumConditionsAsync>

Implements

ICustomWorkflowActionProvider

IWorkflowActionProvider

IDisableProvider

Inherited Members

Equals(object)

Equals(object, object)

GetHashCode()

GetType()

MemberwiseClone()

ReferenceEquals(object, object)

ToString()

Namespace: OptimaJet.Workflow.Plugins.CustomWorkflowProviders

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public abstract class WorkflowActionProvider<TEnumActions, TEnumActionsAsync, TEnumConditions, TEnumConditionsAsync> : ICustomWorkflowActionProvider, IWorkflowActionProvider, IDisableProvider where TEnumActions : struct where TEnumActionsAsync : struct where TEnumConditions : struct where TEnumConditionsAsync : struct

Constructors

WorkflowActionProvider()

Declaration
public WorkflowActionProvider()

Properties

Disabled

Declaration
public abstract bool Disabled { get; set; }
Property value
TypeDescription
bool

Actions

Declaration
protected Dictionary<TEnumActions, ActionDelegate> Actions { get; }
Property value
TypeDescription
Dictionary<TEnumActions, ActionDelegate>

ActionsAsync

Declaration
protected Dictionary<TEnumActionsAsync, ActionAsyncDelegate> ActionsAsync { get; }
Property value
TypeDescription
Dictionary<TEnumActionsAsync, ActionAsyncDelegate>

Conditions

Declaration
protected Dictionary<TEnumConditions, ConditionDelegate> Conditions { get; }
Property value
TypeDescription
Dictionary<TEnumConditions, ConditionDelegate>

ConditionsAsync

Declaration
protected Dictionary<TEnumConditionsAsync, ConditionAsyncDelegate> ConditionsAsync { get; }
Property value
TypeDescription
Dictionary<TEnumConditionsAsync, ConditionAsyncDelegate>

ActionsDescriptions

Declaration
protected Dictionary<TEnumActions, string> ActionsDescriptions { get; }
Property value
TypeDescription
Dictionary<TEnumActions, string>

ActionsAsyncDescriptions

Declaration
protected Dictionary<TEnumActionsAsync, string> ActionsAsyncDescriptions { get; }
Property value
TypeDescription
Dictionary<TEnumActionsAsync, string>

ActionsAsyncTemplates

Declaration
protected Dictionary<TEnumActionsAsync, string> ActionsAsyncTemplates { get; }
Property value
TypeDescription
Dictionary<TEnumActionsAsync, string>

ConditionsDescriptions

Declaration
protected Dictionary<TEnumConditions, string> ConditionsDescriptions { get; }
Property value
TypeDescription
Dictionary<TEnumConditions, string>

ConditionsAsyncDescriptions

Declaration
protected Dictionary<TEnumConditionsAsync, string> ConditionsAsyncDescriptions { get; }
Property value
TypeDescription
Dictionary<TEnumConditionsAsync, string>

ConditionsAsyncTemplates

Declaration
protected Dictionary<TEnumConditionsAsync, string> ConditionsAsyncTemplates { get; }
Property value
TypeDescription
Dictionary<TEnumConditionsAsync, string>

ActionsExcludeRule

Declaration
protected Dictionary<TEnumActions, ExcludeRule> ActionsExcludeRule { get; }
Property value
TypeDescription
Dictionary<TEnumActions, ExcludeRule>

ActionsAsyncExcludeRule

Declaration
protected Dictionary<TEnumActionsAsync, ExcludeRule> ActionsAsyncExcludeRule { get; }
Property value
TypeDescription
Dictionary<TEnumActionsAsync, ExcludeRule>

ConditionsExcludeRule

Declaration
protected Dictionary<TEnumConditions, ExcludeRule> ConditionsExcludeRule { get; }
Property value
TypeDescription
Dictionary<TEnumConditions, ExcludeRule>

ConditionsAsyncExcludeRule

Declaration
protected Dictionary<TEnumConditionsAsync, ExcludeRule> ConditionsAsyncExcludeRule { get; }
Property value
TypeDescription
Dictionary<TEnumConditionsAsync, ExcludeRule>

ActionParameter

Declaration
protected string ActionParameter { get; set; }
Property value
TypeDescription
string

Methods

ExcludeAction(string, ExcludeRule)

Declaration
public void ExcludeAction(string actionName, ExcludeRule excludeRule = null)
Parameters
TypeNameDescription
stringactionName
ExcludeRuleexcludeRule

ExcludeCondition(string, ExcludeRule)

Declaration
public void ExcludeCondition(string conditionName, ExcludeRule excludeRule = null)
Parameters
TypeNameDescription
stringconditionName
ExcludeRuleexcludeRule

ExecuteAction(string, ProcessInstance, WorkflowRuntime, string)

Declaration
public virtual void ExecuteAction(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter)
Parameters
TypeNameDescription
stringname
ProcessInstanceprocessInstance
WorkflowRuntimeruntime
stringactionParameter

ExecuteActionAsync(string, ProcessInstance, WorkflowRuntime, string, CancellationToken)

Declaration
public virtual Task ExecuteActionAsync(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter, CancellationToken token)
Parameters
TypeNameDescription
stringname
ProcessInstanceprocessInstance
WorkflowRuntimeruntime
stringactionParameter
CancellationTokentoken
Returns
TypeDescription
Task

ExecuteCondition(string, ProcessInstance, WorkflowRuntime, string)

Declaration
public virtual bool ExecuteCondition(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter)
Parameters
TypeNameDescription
stringname
ProcessInstanceprocessInstance
WorkflowRuntimeruntime
stringactionParameter
Returns
TypeDescription
bool

ExecuteConditionAsync(string, ProcessInstance, WorkflowRuntime, string, CancellationToken)

Declaration
public virtual Task<bool> ExecuteConditionAsync(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter, CancellationToken token)
Parameters
TypeNameDescription
stringname
ProcessInstanceprocessInstance
WorkflowRuntimeruntime
stringactionParameter
CancellationTokentoken
Returns
TypeDescription
Task<bool>

GetActions(string, NamesSearchType)

Declaration
public virtual List<string> GetActions(string schemeCode, NamesSearchType namesSearchType)
Parameters
TypeNameDescription
stringschemeCode
NamesSearchTypenamesSearchType
Returns
TypeDescription
List<string>

GetConditions(string, NamesSearchType)

Declaration
public virtual List<string> GetConditions(string schemeCode, NamesSearchType namesSearchType)
Parameters
TypeNameDescription
stringschemeCode
NamesSearchTypenamesSearchType
Returns
TypeDescription
List<string>

IsActionAsync(string, string)

Declaration
public virtual bool IsActionAsync(string name, string schemeCode)
Parameters
TypeNameDescription
stringname
stringschemeCode
Returns
TypeDescription
bool

GetActionsAsync(NamesSearchType)

Declaration
protected List<TEnumActionsAsync> GetActionsAsync(NamesSearchType namesSearchType)
Parameters
TypeNameDescription
NamesSearchTypenamesSearchType
Returns
TypeDescription
List<TEnumActionsAsync>

GetActions(NamesSearchType)

Declaration
protected List<TEnumActions> GetActions(NamesSearchType namesSearchType)
Parameters
TypeNameDescription
NamesSearchTypenamesSearchType
Returns
TypeDescription
List<TEnumActions>

GetConditions(NamesSearchType)

Declaration
protected List<TEnumConditions> GetConditions(NamesSearchType namesSearchType)
Parameters
TypeNameDescription
NamesSearchTypenamesSearchType
Returns
TypeDescription
List<TEnumConditions>

GetConditionsAsync(NamesSearchType)

Declaration
protected List<TEnumConditionsAsync> GetConditionsAsync(NamesSearchType namesSearchType)
Parameters
TypeNameDescription
NamesSearchTypenamesSearchType
Returns
TypeDescription
List<TEnumConditionsAsync>

IsConditionAsync(string, string)

Declaration
public virtual bool IsConditionAsync(string name, string schemeCode)
Parameters
TypeNameDescription
stringname
stringschemeCode
Returns
TypeDescription
bool

ToParameters(string)

Declaration
protected virtual Dictionary<string, string> ToParameters(string actionParameter)
Parameters
TypeNameDescription
stringactionParameter
Returns
TypeDescription
Dictionary<string, string>

Extension Methods