刚学习WF的一个DEMO很简单,对入门也应该很有作用吧。能够表现工作流的各种状态。希望对刚入门的Coder有所帮助吧。

(简单的顺序流流程图)
(简单的顺序流流程图)
Program.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading;
6
using System.Workflow.Runtime;
7
using System.Workflow.Runtime.Hosting;
8
9
namespace WWFLife
10
2
3
4
5
6
7
8
9
10
Workflow1.cs(工作流引擎代码)
1
using System;
2
using System.ComponentModel;
3
using System.ComponentModel.Design;
4
using System.Collections;
5
using System.Drawing;
6
using System.Reflection;
7
using System.Workflow.ComponentModel.Compiler;
8
using System.Workflow.ComponentModel.Serialization;
9
using System.Workflow.ComponentModel;
10
using System.Workflow.ComponentModel.Design;
11
using System.Workflow.Runtime;
12
using System.Workflow.Activities;
13
using System.Workflow.Activities.Rules;
14
15
namespace WWFLife
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16