forked from optimajet/WorkflowEngine.NET
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIWorkflowBus.cs
More file actions
41 lines (39 loc) · 1.53 KB
/
Copy pathIWorkflowBus.cs
File metadata and controls
41 lines (39 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using OptimaJet.Workflow.Core.Runtime;
namespace OptimaJet.Workflow.Core.Bus
{
/// <summary>
/// Interface of a bus, which provide control over execution of activities and actions
/// </summary>
public interface IWorkflowBus
{
/// <summary>
/// Initialize the bus
/// </summary>
/// <param name="runtime">WorkflowRuntime instance which owned the bus</param>
void Initialize(WorkflowRuntime runtime);
/// <summary>
/// Starts the bus
/// </summary>
void Start();
/// <summary>
/// Queue execution with the list of <see cref="ExecutionRequestParameters"/>
/// </summary>
/// <param name="requestParameters">List of <see cref="ExecutionRequestParameters"/></param>
void QueueExecution(IEnumerable<ExecutionRequestParameters> requestParameters);
/// <summary>
/// Queue execution with the <see cref="ExecutionRequestParameters"/>
/// </summary>
/// <param name="requestParameters">Instance of <see cref="ExecutionRequestParameters"/></param>
void QueueExecution(ExecutionRequestParameters requestParameters);
/// <summary>
/// Event raised after the execution was complete
/// </summary>
event EventHandler<ExecutionResponseEventArgs> ExecutionComplete;
/// <summary>
/// Returns true if the bus supports asynchronous model of execution
/// </summary>
bool IsAsync { get; }
}
}