Interface IWorkflowActionProvider
OptimaJet.Workflow.Core.Runtime.IWorkflowActionProvider
Interface of a action provider, which provide execution of actions specified in activities ActivityDefinition.Implementation and ActivityDefinition.PreExecutionImplementation and execution of conditions ConditionDefinition.Action
Namespace: OptimaJet.Workflow.Core.Runtime
public interface IWorkflowActionProviderMethods
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
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
Taskbool 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
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
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
Booleanbool 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
BooleanList<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
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
Derived Types
- AggregatingActionProvider
- DeactivatedWorkflowActionProvider
- EmptyWorkflowActionProvider
- ApprovalPlugin
- BasicPlugin
- CustomMixProvider<EnumActions, EnumActionsAsync, EnumConditions, EnumConditionsAsync>
- ProviderProviders<TEnumProviders>
- WorkflowActionAndDesignerParameterFormatProvider<TEnumActions, TEnumActionsAsync, TEnumConditions, TEnumConditionsAsync>
- WorkflowActionProvider<TEnumActions, TEnumActionsAsync, TEnumConditions, TEnumConditionsAsync>
- WorkflowPlugin<TEnumActions, TEnumActionsAsync, TEnumConditions, TEnumConditionsAsync>
- WorkflowPluginWithRuleProvider<EnumActions, EnumActionsAsync, EnumConditions, EnumConditionsAsync, EnumRules, EnumRulesAsync>
- LoopPlugin