Presentation is loading. Please wait.

Presentation is loading. Please wait.

Windows Workflow Foundation Mike Taulty Developer & Platform Group Microsoft Ltd

Similar presentations


Presentation on theme: "Windows Workflow Foundation Mike Taulty Developer & Platform Group Microsoft Ltd"— Presentation transcript:

1 Windows Workflow Foundation Mike Taulty Developer & Platform Group Microsoft Ltd Mike.Taulty@microsoft.com http://mtaulty.com

2 Intro: WinFX

3 What’s WinFX? Managed API for the Windows platform Extends the.NET Framework V2.0 First ships at the time of Windows Vista (2006) Included in Windows Vista Available on Windows XP Sp 2 and Server 2003 Following a Community Technology Preview Cycle Latest is the February CTP

4 WinFX Themes WinFX

5 Intro: Windows Workflow Foundation

6 Windows Workflow Foundation Single framework for Workflow on Windows Extensible Both human and system Workflow Supports long-running and stateful Workflows

7 Activies – Workflow Building Blocks Activities are classes Basic Activities or Composite Activities A workflow is a composite activity public string SourceFile; public string DestFile; override Execute() { File.Copy(SourceFile, DestFile); }

8 Styles of Workflow

9 The Workflow Framework (or “What’s in the box?”) RuntimeDesigner Base Activities Runtime Services

10 Framework: Workflow Runtime

11 Demo Framework: Hosting the Runtime

12 Framework: Workflow Designer Hosted in Visual Studio 2005 Hosted in your application for end-users Supports theming in both VS and non-VS environments

13 Demo Framework: Using/Hosting the Designer

14 Framework: Base Activity Library Pre-built set of building block activities CompositeBasic

15 Demo Framework: Using the Base Activity Library

16 Framework: Runtime Services Runtime uses services PersistenceSchedulingTrackingTransactions Defaults in the box for most services Pluggable – add your own

17 Demo Framework: Plugging in Runtime Services

18 Building Activities

19 Activities: Component Model Activity is at the centre of a component model

20 Activities: Lifecycle Activities have a lifecycle

21 Demo Activities: Building custom activities

22 Other things to know about…

23 Host/Workflow Communication ILoanNotify { GetLoanApproval(); event LoanApproved; } class Notifier : ILoanNotify { }

24 Demo Host/Workflow Communication

25 State Machine Workflows State Start Wait for X Wait for Y Wait for Z State Wait for A Wait for B Terminate Activity Transition

26 Demo State Machine Workflows

27 Applying Rule-Based Policies Data Policy (RuleSet) Rule: If PRICE then Rule: If … then Priority: 1 Priority: 2 Priority: 3 Priority: 4 Priority: 5 Price: 200 Change

28 Demo Rule based policies

29 Transaction Scope Book Flight Working with Transactions Transaction Scope Book Hotel Error! Commit happens here Compensation Cancel Hotel

30 Demo Working with Transactions

31 Modifying Running Instances Running Workflow instance can be modified Logic changed Activities added/removed Runtime managed Change

32 Demo Modifying Workflow Instances

33 Resources MSDN Developer Centre http://msdn.microsoft.com/winfx Windows Workflow Site http://www.windowsworkflow.net UK Community Resources http://www.roadtowinfx.com MSDN Nugget Videos http://www.msdn.co.uk/events/nuggets.aspx http://mtaulty.com/services/NuggetFeeds.ashx?query= topics

34 © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.


Download ppt "Windows Workflow Foundation Mike Taulty Developer & Platform Group Microsoft Ltd"

Similar presentations


Ads by Google