Workflow Engine .NET  2
Public Member Functions | List of all members
OptimaJet.Workflow.Core.Runtime.IWorkflowActionProvider Interface Reference

Interface of a action provider, which provide execution of actions specified in activities ActivityDefinition.Implementation and ActivityDefinition.PreExecutionImplementation and execution of conditions ConditionDefinition.Action More...

Inheritance diagram for OptimaJet.Workflow.Core.Runtime.IWorkflowActionProvider:
OptimaJet.Workflow.Core.Runtime.EmptyWorkflowActionProvider

Public Member Functions

void ExecuteAction (string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter)
 Execute action More...
 
Task ExecuteActionAsync (string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter, CancellationToken token)
 Execute action asynchronously More...
 
bool ExecuteCondition (string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter)
 Check condition More...
 
Task< bool > ExecuteConditionAsync (string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter, CancellationToken token)
 Check condition asynchronously More...
 
bool IsActionAsync (string name)
 Checks whether the action should be called asynchronously More...
 
bool IsConditionAsync (string name)
 Checks whether the condition should be called asynchronously More...
 
List< string > GetActions ()
 Return all user actions names More...
 
List< string > GetConditions ()
 Return all user conditions names More...
 

Detailed Description

Interface of a action provider, which provide execution of actions specified in activities ActivityDefinition.Implementation and ActivityDefinition.PreExecutionImplementation and execution of conditions ConditionDefinition.Action

Member Function Documentation

◆ ExecuteAction()

void OptimaJet.Workflow.Core.Runtime.IWorkflowActionProvider.ExecuteAction ( string  name,
ProcessInstance  processInstance,
WorkflowRuntime  runtime,
string  actionParameter 
)

Execute action

Parameters
nameName of the action to execute
processInstanceReference to ProcessInstance from which action is executed ProcessInstance
runtimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
actionParameterAdditional action parameter ActionDefinitionReference.ActionParameter

Implemented in OptimaJet.Workflow.Core.Runtime.EmptyWorkflowActionProvider.

◆ ExecuteActionAsync()

Task OptimaJet.Workflow.Core.Runtime.IWorkflowActionProvider.ExecuteActionAsync ( string  name,
ProcessInstance  processInstance,
WorkflowRuntime  runtime,
string  actionParameter,
CancellationToken  token 
)

Execute action asynchronously

Parameters
nameName of the action to execute
processInstanceReference to ProcessInstance from which action is executed ProcessInstance
runtimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
actionParameterAdditional action parameter ActionDefinitionReference.ActionParameter
tokenCancellation token

Implemented in OptimaJet.Workflow.Core.Runtime.EmptyWorkflowActionProvider.

◆ ExecuteCondition()

bool OptimaJet.Workflow.Core.Runtime.IWorkflowActionProvider.ExecuteCondition ( string  name,
ProcessInstance  processInstance,
WorkflowRuntime  runtime,
string  actionParameter 
)

Check condition

Parameters
nameName of the condition to check
processInstanceReference to ProcessInstance from which condition is checked ProcessInstance
runtimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
actionParameterAdditional action parameter ActionDefinitionReference.ActionParameter
Returns
Condition result

Implemented in OptimaJet.Workflow.Core.Runtime.EmptyWorkflowActionProvider.

◆ ExecuteConditionAsync()

Task<bool> OptimaJet.Workflow.Core.Runtime.IWorkflowActionProvider.ExecuteConditionAsync ( string  name,
ProcessInstance  processInstance,
WorkflowRuntime  runtime,
string  actionParameter,
CancellationToken  token 
)

Check condition asynchronously

Parameters
nameName of the condition to check
processInstanceReference to ProcessInstance from which condition is checked ProcessInstance
runtimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
actionParameterAdditional action parameter ActionDefinitionReference.ActionParameter
tokenCancellation token
Returns
Condition result

Implemented in OptimaJet.Workflow.Core.Runtime.EmptyWorkflowActionProvider.

◆ GetActions()

List<string> OptimaJet.Workflow.Core.Runtime.IWorkflowActionProvider.GetActions ( )

Return all user actions names

Returns
List of actions names

Implemented in OptimaJet.Workflow.Core.Runtime.EmptyWorkflowActionProvider.

◆ GetConditions()

List<string> OptimaJet.Workflow.Core.Runtime.IWorkflowActionProvider.GetConditions ( )

Return all user conditions names

Returns
List of conditions names

Implemented in OptimaJet.Workflow.Core.Runtime.EmptyWorkflowActionProvider.

◆ IsActionAsync()

bool OptimaJet.Workflow.Core.Runtime.IWorkflowActionProvider.IsActionAsync ( string  name)

Checks whether the action should be called asynchronously

Parameters
nameName of the action

Implemented in OptimaJet.Workflow.Core.Runtime.EmptyWorkflowActionProvider.

◆ IsConditionAsync()

bool OptimaJet.Workflow.Core.Runtime.IWorkflowActionProvider.IsConditionAsync ( string  name)

Checks whether the condition should be called asynchronously

Parameters
nameName of the condition

Implemented in OptimaJet.Workflow.Core.Runtime.EmptyWorkflowActionProvider.