Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started...

42

Transcript of Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started...

Page 1: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.
Page 2: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

Stef Sewell & Peter GoodmanArchitect, Lead EngineerADERANT

Getting Started with Workflow in .NET 4

SESSION CODE: DEV208

Page 3: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

3

“Runtime-Mediated Code Rendezvous”

Before we begin…Is this session for you?

Page 4: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

4

AgendaWorkflow Basics

What is a workflow? Why would I use a workflow? How do I create a workflow? How do I execute a workflow? How do I test and debug a workflow? Anything else I need to know?

Page 5: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

5

AgendaWorkflow Services

What is a workflow service? Why would I use a workflow service? How do I create a workflow service? How do I host a workflow service? How do I monitor and manage a workflow service? Anything else I need to know?

Page 6: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

6

What is a workflow?

Page 7: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

7

Page 8: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

8

A workflow is a program

Page 9: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

9

A workflow is a declarative program

Page 10: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

10

A workflow runtime is responsible for scheduling the execution of the

steps

Page 11: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

11

A workflow is composed of an ordered sequence of activities

Page 12: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

12

An activity is the atom in the workflow universe.

Page 13: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

13

A workflow has data which is captured as variables

Page 14: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

14

An activity has arguments to allow data to flow in and out

Page 15: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

15

Why would I use a workflow?

Page 16: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

16

You want to automate existing business processes

Page 17: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

17

You have long running logical processes that are episodic in

nature.

Page 18: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

18

You want to provide an intuitive customization model as part of

your solution

Page 19: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

19

How do I create a workflow?

Page 20: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

20

DEMO: Business ProcessLeave Request

Page 21: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

21

DEMO: The Magic Eight BallPart 1 – Create & Execute

Page 22: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

22

How do I debug test a workflow?

Page 23: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

23

DEMO: The Magic Eight BallPart 2 – Test & Debug

Page 24: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

24

Workflow BasicsAnything else I need to know?

Lots that we don’t have time for so check out:Total Noobs’ Guide to WF4 http://www.msteched.com/2010/NorthAmerica/DEV207 Building Activities for WF4 http://www.msteched.com/2010/NorthAmerica/ASI303 WF4 Inside Out [‘Runtime-Mediated Code Rendezvous’]

http://www.microsoftpdc.com/2009/P09-22 The .NET Endpoint http://blogs.msdn.com/b/endpoint/

Page 25: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

25

Workflow BasicsAnything else I need to know?

A First Look at WCF and WF in .NET 4 http://www.msteched.com/2009/NewZealand/SOA206Stef’s Blog: http://web.me.com/stefsewell/TechEd2010 Pete’s Blog: http://blog.petegoo.com/

Page 26: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

26

AgendaWorkflow Basics

What is a workflow? Why would I use a workflow? How do I create a workflow? How do I execute a workflow? How do I test and debug a workflow? Anything else I need to know?

Page 27: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

27

AgendaWorkflow Services

What is a workflow service? Why would I use a workflow service? How do I create a workflow service? How do I host a workflow service? How do I monitor and manage a workflow service? Anything else I need to know?

Page 28: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

28

What is a workflow service?

Page 29: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

29

A WCF service whose implementation is a workflow

Page 30: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

30

Why would I use a workflow service?

Page 31: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

31

Service logic easily modeled as a workflow

Page 32: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

32

Service encapsulates a long running process

Page 33: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

33

How do I create a workflow service?

Page 34: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

34

DEMO: The Magic Eight Ball ServicePart 1 – Create & Host

Page 35: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

35

How do I monitor and manage a workflow service?

Page 36: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

36

DEMO: The Magic Eight Ball ServicePart 2 – Monitor & Manage

Page 37: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

37

Workflow ServicesAnything else I need to know?

Lots that we don’t have time for so check out:DEV306: Taming SOA Deployments using Window Server AppFabric (Wed, 10:40 – 11:40)Declarative N-Tier Applications using WPF, WCF and WF http://www.msteched.com/2009/NewZealand/SOA306Developer’s Introduction to Windows Workflow Foundation (WF) in .NET 4 http://msdn.microsoft.com/en-us/library/ee342461.aspx Windows Server AppFabric http://msdn.microsoft.com/en-us/windowsserver/ee695849.aspxWorkflow Service and Windows Server AppFabric

Page 38: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

38

AgendaWorkflow Services

What is a workflow service? Why would I use a workflow service? How do I create a workflow service? How do I host a workflow service? How do I monitor and manage a workflow service? Anything else I need to know?

Page 39: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

39

DEV306: Taming SOA Deployments using Window Server AppFabric (Wed, 10:40 – 11:40)

Related Content

Page 40: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

40

Please submit Feedback

Page 41: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

41

Questions ?

Page 42: Stef SewellStef Sewell & Peter GoodmanPeter Goodman Architect, Lead Engineer ADERANT Getting Started with Workflow in.NET 4 SESSION CODE: DEV208.

© 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.