Workflow Engine .NET  2
Public Member Functions | Events | List of all members
OptimaJet.Workflow.Core.Bus.IWorkflowBus Interface Reference

Interface of a bus, which provide control over execution of activities and actions More...

Inheritance diagram for OptimaJet.Workflow.Core.Bus.IWorkflowBus:
OptimaJet.Workflow.Core.Bus.NullBus

Public Member Functions

void Initialize (WorkflowRuntime runtime)
 Initialize the bus More...
 
void Start ()
 Starts the bus More...
 
Task< bool > QueueExecution (IEnumerable< ExecutionRequestParameters > requestParameters, CancellationToken token, bool notFireExecutionComplete=false)
 Queue execution with the list of ExecutionRequestParameters More...
 
Task< bool > QueueExecution (ExecutionRequestParameters requestParameters, CancellationToken token, bool notFireExecutionComplete=false)
 Queue execution with the ExecutionRequestParameters More...
 

Events

Func< IWorkflowBus, ExecutionResponseEventArgs, Task > ExecutionComplete
 Raises after the execution was complete More...
 
EventHandler< BeforeActivityExecutionEventArgsBeforeExecution
 Raises before execution of choosen activity More...
 

Detailed Description

Interface of a bus, which provide control over execution of activities and actions

Member Function Documentation

◆ Initialize()

void OptimaJet.Workflow.Core.Bus.IWorkflowBus.Initialize ( WorkflowRuntime  runtime)

Initialize the bus

Parameters
runtimeWorkflowRuntime instance which owned the bus

Implemented in OptimaJet.Workflow.Core.Bus.NullBus.

◆ QueueExecution() [1/2]

Task<bool> OptimaJet.Workflow.Core.Bus.IWorkflowBus.QueueExecution ( IEnumerable< ExecutionRequestParameters requestParameters,
CancellationToken  token,
bool  notFireExecutionComplete = false 
)

Queue execution with the list of ExecutionRequestParameters

Parameters
requestParametersList of ExecutionRequestParameters
tokenCancellation token
notFireExecutionCompleteIf true - the Bus must execute the Request without firing ExecutionComplete
Returns
True if some activity and actions were executed

Implemented in OptimaJet.Workflow.Core.Bus.NullBus.

◆ QueueExecution() [2/2]

Task<bool> OptimaJet.Workflow.Core.Bus.IWorkflowBus.QueueExecution ( ExecutionRequestParameters  requestParameters,
CancellationToken  token,
bool  notFireExecutionComplete = false 
)

Queue execution with the ExecutionRequestParameters

Parameters
requestParametersInstance of ExecutionRequestParameters

///

Parameters
tokenCancellation token
notFireExecutionCompleteIf true - the Bus must execute the Request without firing ExecutionComplete
Returns
True if some activity and actions were executed

Implemented in OptimaJet.Workflow.Core.Bus.NullBus.

◆ Start()

void OptimaJet.Workflow.Core.Bus.IWorkflowBus.Start ( )

Starts the bus

Implemented in OptimaJet.Workflow.Core.Bus.NullBus.

Event Documentation

◆ BeforeExecution

EventHandler<BeforeActivityExecutionEventArgs> OptimaJet.Workflow.Core.Bus.IWorkflowBus.BeforeExecution

Raises before execution of choosen activity

◆ ExecutionComplete

Func<IWorkflowBus,ExecutionResponseEventArgs, Task> OptimaJet.Workflow.Core.Bus.IWorkflowBus.ExecutionComplete

Raises after the execution was complete