-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
30 lines (26 loc) · 1.05 KB
/
Program.cs
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
using System;
using WorkflowEngine.Workflow;
using WorkflowEngine.Workflow.Nodes;
using WorkflowEngine.Workflow.Transitions;
using WorkflowEngine.Workflow.Runners;
namespace WorkflowEngine
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Running sequential workflow.");
SampleDocumentApprovalWorkflow wf1 = new SampleDocumentApprovalWorkflow();
SequentialRunner sequentialRunner = new SequentialRunner();
sequentialRunner.AddWorkflow(wf1);
Workflow.WorkflowEngine.Execute(sequentialRunner);
Console.WriteLine("Sequential workflow finished.");
/*Console.WriteLine("Running repeated workflow.");
SampleDocumentApprovalWorkflow wf2 = new SampleDocumentApprovalWorkflow();
RepeatedRunner repeatedRunner = new RepeatedRunner(3);
repeatedRunner.AddWorkflow(wf2);
WorkflowEngine.Execute(repeatedRunner);
Console.WriteLine("Repeated workflow finished.");*/
}
}
}