惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threatpost
V
Vulnerabilities – Threatpost
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
G
GRAHAM CLULEY
S
Securelist
P
Palo Alto Networks Blog
MongoDB | Blog
MongoDB | Blog
A
Arctic Wolf
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
WordPress大学
WordPress大学
Project Zero
Project Zero
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
C
Cyber Attacks, Cyber Crime and Cyber Security
F
Fortinet All Blogs
博客园 - 叶小钗
B
Blog RSS Feed
C
Cisco Blogs
Google DeepMind News
Google DeepMind News
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Apple Machine Learning Research
Apple Machine Learning Research
G
Google Developers Blog
K
Kaspersky official blog
D
Docker
Latest news
Latest news
Cisco Talos Blog
Cisco Talos Blog
T
Tor Project blog
Cyberwarzone
Cyberwarzone
Security Latest
Security Latest
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
C
Check Point Blog
J
Java Code Geeks
Simon Willison's Weblog
Simon Willison's Weblog
T
Tenable Blog
Recent Announcements
Recent Announcements
T
Tailwind CSS Blog
H
Help Net Security
L
LINUX DO - 热门话题
T
The Exploit Database - CXSecurity.com
Jina AI
Jina AI
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
NISL@THU
NISL@THU
美团技术团队
腾讯CDC

博客园 - 太白飞仙

.Net网络资源 CI创意的方法与技巧 可控人生核聚变 用c#备份和还原sql server 2000数据库 论文先睹:关于科学的生命哲学的思考 蚂蚁造山的思考 语言争霸VS魔兽争霸 :: IT世界VS魔兽世界 第九章 SQL Server的简单应用 [导入]类型MSN窗体行为的实现(.NET 2.0) - 太白飞仙 - 博客园 [导入]文章藏金阁 [导入]敏捷实验室的一次争论 [导入]Netron研究(四)----"移动和联通"之联通篇 [导入]Netron研究(二)----"容器"登场 [导入]Netron研究(一)----初识 [导入]Netron研究(三)----"移动和联通"之移动篇 [导入]Agile Framework的日志服务 [导入]KISS原则 [导入]WWF工作流引擎的一个奇怪现象 - 太白飞仙 - 博客园 [导入]时刻提防过度设计
[导入]Agile Framework工作流服务的设计思路
太白飞仙 · 2006-01-16 · via 博客园 - 太白飞仙

在Agile Framework中,工作流服务是一个内建的基础服务,采用Agile Framework进行开发可以非常方便的使用工作流。当然,前提是对整个应用系统的设计首先必须要符合SOA架构思想

Agile Framework的工作流服务主要由两个接口构成:IWorkflowManager和IWorkflow,其中IWorkflowManager的实现组件由框架完成,会被系统自动加载到IoC容器之中。需要工作流服务的业务组件只需要在构造函数中声明一个IWorkflowManager的参数,就可以获得IWorkflowManager服务。IWorkflowManager最主要的用户接口就是GetWorkflow,这个接口接收一个工作流名称并返回相应的实现了IWorkflow接口的工作流实例引用,此时就可以对该该工作流进行操作。

public class BusinessComponent { IWorkflowManager workflowManager = null; public BusinessComponent(IWorkflowManager wm) { workflowManager = wm; } public void DoSomething() {

          IWorkflow workflow = wm.GetWorkflow("TestWorkflow"); workflow.Start();

} }

WorkflowManager管理系统中所有的工作流对象的生命周期、状态,并负责跟踪工作流的执行情况和进行工作流的序列化和反序列化。每一个工作流对象则代表了一个进行中的流程,负责各个子系统的数据流传递。

工作流服务的基本结构如下图所示(类中的接口只是示意,并没有写全):

目前Agile Framework的工作流服务底层是采用Microsoft最新推出的Windows Workflow(WWF)工作流引擎来实现的,但是在架构上也可以很方便的替换为别的工作流引擎。


文章来源:http://www.agilelabs.cn/blogs/linkin/archive/2005/12/30/406.aspx