Windows Workflow Foundation CON 230 Windows Workflow Foundation

  • Slides: 26
Download presentation
Windows Workflow Foundation CON 230

Windows Workflow Foundation CON 230

课程内容安排 Windows Workflow Foundation 基础知识 演示: Building “Hello World” Activity: 作流的部件 演示: Building custom

课程内容安排 Windows Workflow Foundation 基础知识 演示: Building “Hello World” Activity: 作流的部件 演示: Building custom activities Windows Workflow Foundation 多项创新 演示: State machine workflow application

Windows Workflow Foundation 基础知识

Windows Workflow Foundation 基础知识

什么是 作流? A set of activities that coordinate people and / or software. .

什么是 作流? A set of activities that coordinate people and / or software. . . 活动举例: 提交经理审批 检查库存 …organized into a workflow. 类似流程图: 或是状态图 5

Workflow and Biz. Talk Server Accelerators Workflow Orchestration Design Tools Messaging Transformation Adapters Busines

Workflow and Biz. Talk Server Accelerators Workflow Orchestration Design Tools Messaging Transformation Adapters Busines s Activity Monitor And Admin Tools • 作流服务器 • 将来的Biz. Talk Server将采用Windows Workflow Foundation 实现 作流 Visual Studio Designer Windows Workflow Foundation • Windows Workflow Foundation Win. FX 8

Workflow 基础 A workflow is a class Imports System. Workflow. Activities Public Class My.

Workflow 基础 A workflow is a class Imports System. Workflow. Activities Public Class My. Workflow Inherits Sequential. Workflow … End Class A workflow class may be defined in markup <? Mapping Xml. Namespace="Activities" Clr. Namespace="System. Workflow. Activities" Assembly="System. Workflow. Activities" ? > <Sequential. Workflow x: Class="My. Workflow" xmlns="Activities" xmlns: x="Definition"> … </Sequential. Workflow> 10

Building a Workflow

Building a Workflow

A Send. Mail Activity using System. Workflow. Component. Model; public partial class Send. Mail

A Send. Mail Activity using System. Workflow. Component. Model; public partial class Send. Mail : System. Workflow. Component. Model. Activity { public Send. Mail() { Initialize. Component(); } protected override Status Execute(Activity. Execution. Context context) { // my logic here to send the email return Status. Closed; } } public partial class Send. Mail { public string subject; public string Subject { get { return subject; } set { this. subject = value; } } private void Initialize. Component() // designer generated { this. ID = "Send. Mail"; } } 16

Building an Activity

Building an Activity

Windows Workflow Foundation 多项创新

Windows Workflow Foundation 多项创新

创新: 灵活的 作流Hosting Host 进程 作流 Hosting the Runtime • 可以将应用程序嵌入到 作流中也可 以在应用程序中运行 作流

创新: 灵活的 作流Hosting Host 进程 作流 Hosting the Runtime • 可以将应用程序嵌入到 作流中也可 以在应用程序中运行 作流 Microsoft Hosts • Windows Share. Point Services Runtime Engine Pluggable Services • IIS/ASP host • Biz. Talk future version • MBS future version • Others 20

A State Machine Workflow

A State Machine Workflow

24

24