Class WorkflowActionProvider<TEnumActions, TEnumActionsAsync, TEnumConditions, TEnumConditionsAsync>
OptimaJet.Workflow.Plugins.CustomWorkflowProviders.WorkflowActionProvider<TEnumActions, TEnumActionsAsync, TEnumConditions, TEnumConditionsAsync>
Namespace: OptimaJet.Workflow.Plugins.CustomWorkflowProviders
public abstract class WorkflowActionProvider<TEnumActions, TEnumActionsAsync, TEnumConditions, TEnumConditionsAsync> : ICustomWorkflowActionProvider, IWorkflowActionProvider, IDisableProvider where TEnumActions : struct where TEnumActionsAsync : struct where TEnumConditions : struct where TEnumConditionsAsync : structInheritance
- System.Object
Implemented Interfaces
Constructors
public WorkflowActionProvider() #Properties
Name
Type
Disabled #BooleanActions #Dictionary<ActionDelegate>ActionsAsync #Dictionary<ActionAsyncDelegate>Conditions #Dictionary<ConditionDelegate>ConditionsAsync #Dictionary<ConditionAsyncDelegate>ActionsDescriptions #Dictionary<String>ActionsAsyncDescriptions #Dictionary<String>ActionsAsyncTemplates #Dictionary<String>ConditionsDescriptions #Dictionary<String>ConditionsAsyncDescriptions #Dictionary<String>ConditionsAsyncTemplates #Dictionary<String>ActionsExcludeRule #Dictionary<ExcludeRule>ActionsAsyncExcludeRule #Dictionary<ExcludeRule>ConditionsExcludeRule #Dictionary<ExcludeRule>ConditionsAsyncExcludeRule #Dictionary<ExcludeRule>ActionParameter #StringMethods
public void ExcludeAction(string actionName, ExcludeRule excludeRule = null) #Parameters
Name
Type
Description
actionNameStringexcludeRuleExcludeRulepublic void ExcludeCondition(string conditionName, ExcludeRule excludeRule = null) #Parameters
Name
Type
Description
conditionNameStringexcludeRuleExcludeRulepublic virtual void ExecuteAction(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter) #Execute action
Parameters
Name
Type
Description
nameStringName of the action to execute
processInstanceProcessInstanceReference to ProcessInstance from which action is executed ProcessInstance
runtimeWorkflowRuntimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
public virtual Task ExecuteActionAsync(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter, CancellationToken token) #Execute action asynchronously
Parameters
Name
Type
Description
nameStringName of the action to execute
processInstanceProcessInstanceReference to ProcessInstance from which action is executed ProcessInstance
runtimeWorkflowRuntimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
tokenCancellationTokenCancellation token
Returns
Type
Description
Taskpublic virtual bool ExecuteCondition(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter) #Check condition
Parameters
Name
Type
Description
nameStringName of the condition to check
processInstanceProcessInstanceReference to ProcessInstance from which condition is checked ProcessInstance
runtimeWorkflowRuntimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
Returns
Type
Description
BooleanCondition result
public virtual Task<bool> ExecuteConditionAsync(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter, CancellationToken token) #Check condition asynchronously
Parameters
Name
Type
Description
nameStringName of the condition to check
processInstanceProcessInstanceReference to ProcessInstance from which condition is checked ProcessInstance
runtimeWorkflowRuntimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
tokenCancellationTokenCancellation token
Returns
Type
Description
Task<Boolean>Condition result
public virtual List<string> GetActions(string schemeCode, NamesSearchType namesSearchType) #Return all user actions names
Parameters
Name
Type
Description
schemeCodeStringScheme code
namesSearchTypeNamesSearchTypeReturns
Type
Description
List<String>List of actions names
public virtual List<string> GetConditions(string schemeCode, NamesSearchType namesSearchType) #Return all user conditions names
Parameters
Name
Type
Description
schemeCodeStringScheme code
namesSearchTypeNamesSearchTypeReturns
Type
Description
List<String>List of conditions names
public virtual bool IsActionAsync(string name, string schemeCode) #Checks whether the action should be called asynchronously
Parameters
Name
Type
Description
nameStringName of the action
schemeCodeStringScheme code
Returns
Type
Description
Booleanprotected List<TEnumActionsAsync> GetActionsAsync(NamesSearchType namesSearchType) #Parameters
Name
Type
Description
namesSearchTypeNamesSearchTypeReturns
Type
Description
List<TEnumActionsAsync>protected List<TEnumActions> GetActions(NamesSearchType namesSearchType) #Parameters
Name
Type
Description
namesSearchTypeNamesSearchTypeReturns
Type
Description
List<TEnumActions>protected List<TEnumConditions> GetConditions(NamesSearchType namesSearchType) #Parameters
Name
Type
Description
namesSearchTypeNamesSearchTypeReturns
Type
Description
List<TEnumConditions>protected List<TEnumConditionsAsync> GetConditionsAsync(NamesSearchType namesSearchType) #Parameters
Name
Type
Description
namesSearchTypeNamesSearchTypeReturns
Type
Description
List<TEnumConditionsAsync>public virtual bool IsConditionAsync(string name, string schemeCode) #Checks whether the condition should be called asynchronously
Parameters
Name
Type
Description
nameStringName of the condition
schemeCodeStringScheme code
Returns
Type
Description
Booleanprotected virtual Dictionary<string, string> ToParameters(string actionParameter) #Parameters
Name
Type
Description
actionParameterStringReturns
Type
Description
Dictionary<String>protected virtual Task<Dictionary<string, string>> ToParametersAsync(string actionParameter, ProcessInstance processInstance) #Parameters
Name
Type
Description
actionParameterStringprocessInstanceProcessInstanceReturns
Type
Description
Task<String>