使用 wf 4 实现您的流 程 —— 在 windows server appfabric 上,在云端

28

Upload: kiayada-shepard

Post on 31-Dec-2015

186 views

Category:

Documents


25 download

DESCRIPTION

DEV-LANG-300-2. 杨光 项目经理 汪宏 测试工程师 微 软中 国. 使用 WF 4 实现您的流 程 —— 在 Windows Server AppFabric 上,在云端. 议程. WF 4 概述 典 型应用场景 演示 下一代工作 流 疑问和解答. WF 4 概述. 托管环境. 活动. 工作流三要素 活动( Activities ) 运行时( Runtime ) 工具( Tooling ) 在程序 中使用工作流 创 建活 动 使用活动组 建工作流 部署及管理. 活动库. 运行时. 服务. 持久化. 跟踪. …. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端
Page 2: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

使用 WF 4 实现您的流程——在 Windows Server AppFabric 上,在云端

DEV-LANG-300-2

杨光 项目经理汪宏 测试工程师 微软中国

Page 3: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

议程

WF 4 概述典型应用场景演示下一代工作流疑问和解答

Page 4: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

WF 4 概述

工作流三要素活动( Activities )运行时( Runtime )工具( Tooling )

在程序中使用工作流创建活动使用活动组建工作流部署及管理

托管环境

运行时 服务

跟踪持久化

工具VS

设计器VS

调试器移植

设计器

活动活动库

Page 5: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

典型应用场景

长时间运行的任务人工参与

可定制的流程二次定制

协调复杂的业务逻辑多个模块 / 系统之间的交互与集成

Page 6: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端
Page 7: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端
Page 8: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

应用场景 - 工作流定义提交申请

协调员审核

经理审核

部门经理审核

会签

批准

需要修改

需要会签不需要会签

批准 批准

Page 9: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

应用场景 - 系统结构

ASP.NET

Workflow

Database

Page 10: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

应用场景 - 数据库结构

Page 11: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

建立你的第一个工作流程序

如何建立你的活动?如何定义你的工作流?如何在数据库中保存你的数据?如何将工作流和 ASP.NET 结合?

Page 12: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

演 示 一建立你的第一个工作流程序

Page 13: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

实现复杂流程

如何组合业务逻辑?如何实现批复?如何实现会签?

Page 14: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

演 示 二创建复杂流程

Page 15: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

部署及管理

如何部署你的工作流?如何监控你的工作流?如何实现和管理长时间运行的实例?如何在本地及云上部署及管理?

Windows Server AppFabricWindows Azure

Page 16: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

演 示 三部署及管理

Page 17: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端
Page 18: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端
Page 19: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

下一代工作流

工具C# 表达式注释编译检查查找浏览模式树形图框选自动连接

活动状态机数据库邮件

运行时工作流身份动态更新

Page 20: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

总结

WF 4 非常适合用于实现您的流程工作流服务可以帮助您

处理复杂的协作专注于业务逻辑

Windows Server/Azure AppFabric 可以帮助您部署、监控并管理工作流实例在本地和云上

下一代工作流更丰富的活动库更强大的运行时更完善的工具

Page 22: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

疑 问 和 解 答

Page 23: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

感谢您参与此会场!您的意见与建议对我们非常重要。

请您填写反馈表。

Page 24: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED

OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Page 25: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

消息关联

Workflow Service

Receive

Send

Receive

1. 提交请求( RequestId )

3. 发送

4. 审核( RequestId )

2. 初始化关联( Correlation )

5. 使用关联( Correlation )

Page 26: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

监控

健康监测故障检查

Windows Server AppFabric

Workflow Service Host

数据库

ETW

事件收集服务

监控工具

Tracking

Page 27: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

持久化

稳定性 – 长时间运行可用性 – 实例的恢复可扩展性 – 资源优化

Windows Server AppFabric

Workflow Service Host

持久化数据库

工作流管理服务Persistence

Management Endpoint

Page 28: 使用 WF 4 实现您的流 程 —— 在 Windows Server  AppFabric 上,在云端

工作流实例管理模型

Windows Server

AppFabric

Windows Server

AppFabric

Load Balancer

PersistenceDB

Workflow Service

Workflow Service

WorkflowManagement

Service

WorkflowManagement

Service

Workflow Service

WorkflowManagement

Service

Instance

123 | Idle

456 | Idle

789 | Idle

011 | Idle

123 | Active

011 | Active

456 | Active

789 | Active