Workflow Engine .NET  2
Public Member Functions | Public Attributes | List of all members
OptimaJet.Workflow.Core.Bus.ActivityExecutor Class Reference

Provides choice of activity for execution TransitionDefinition.Conditions and execution of actions ActivityDefinition.Implementation and ActivityDefinition.PreExecutionImplementation in chosen activity More...

Public Member Functions

 ActivityExecutor (WorkflowRuntime runtime, Action< ProcessInstance > beforeExecutionAction=null)
 Create ActivityExecutor object More...
 
 ActivityExecutor (WorkflowRuntime runtime, bool isPreExecution, Action< ProcessInstance > beforeExecutionAction=null)
 Create ActivityExecutor object More...
 
async Task< ExecutionResponseParametersExecute (IEnumerable< ExecutionRequestParameters > requestParameters, CancellationToken token)
 Provides choice of activity for execution TransitionDefinition.Conditions and execution of actions ActivityDefinition.Implementation and ActivityDefinition.PreExecutionImplementation in chosen activity More...
 

Public Attributes

IWorkflowActionProvider ActionProvider => _runtime.ActionProvider
 Returns action provider IWorkflowActionProvider from associated workflow runtime More...
 

Detailed Description

Provides choice of activity for execution TransitionDefinition.Conditions and execution of actions ActivityDefinition.Implementation and ActivityDefinition.PreExecutionImplementation in chosen activity

Constructor & Destructor Documentation

◆ ActivityExecutor() [1/2]

OptimaJet.Workflow.Core.Bus.ActivityExecutor.ActivityExecutor ( WorkflowRuntime  runtime,
Action< ProcessInstance beforeExecutionAction = null 
)

Create ActivityExecutor object

Parameters
runtimeWorkflowRuntime instance which owned executor
beforeExecutionActionAction will be called before execution

◆ ActivityExecutor() [2/2]

OptimaJet.Workflow.Core.Bus.ActivityExecutor.ActivityExecutor ( WorkflowRuntime  runtime,
bool  isPreExecution,
Action< ProcessInstance beforeExecutionAction = null 
)

Create ActivityExecutor object

Parameters
runtimeWorkflowRuntime instance which owned executor
isPreExecutionIf true then Result Pre Execution will be considered in time of the check of conditions

///

Parameters
beforeExecutionActionAction will be called before execution

Member Function Documentation

◆ Execute()

async Task<ExecutionResponseParameters> OptimaJet.Workflow.Core.Bus.ActivityExecutor.Execute ( IEnumerable< ExecutionRequestParameters requestParameters,
CancellationToken  token 
)

Provides choice of activity for execution TransitionDefinition.Conditions and execution of actions ActivityDefinition.Implementation and ActivityDefinition.PreExecutionImplementation in chosen activity

Parameters
requestParametersList of execution requests which contains conditions and actions ExecutionRequestParameters
Returns
Execution result

Member Data Documentation

◆ ActionProvider

IWorkflowActionProvider OptimaJet.Workflow.Core.Bus.ActivityExecutor.ActionProvider => _runtime.ActionProvider

Returns action provider IWorkflowActionProvider from associated workflow runtime