Presentation is loading. Please wait.

Presentation is loading. Please wait.

 Ed Pinto PM Microsoft Corporation. Host “Dublin”(IIS/WAS + App Server Extensions) Microsoft ®.NET Workflow Service.exe Host “Dublin”(IIS/WAS + App.

Similar presentations


Presentation on theme: " Ed Pinto PM Microsoft Corporation. Host “Dublin”(IIS/WAS + App Server Extensions) Microsoft ®.NET Workflow Service.exe Host “Dublin”(IIS/WAS + App."— Presentation transcript:

1  Ed Pinto PM Microsoft Corporation

2

3

4 Host “Dublin”(IIS/WAS + App Server Extensions) Microsoft ®.NET Workflow Service.exe Host “Dublin”(IIS/WAS + App Server Extensions) Microsoft ®.NET Workflow Service.exe WF Runtime Tooling VS Designer VS Debugger Rehosted Designer Workflow Activity Library

5 Activities are the primitive abstraction for behaviorActivities are composable with other ActivitiesActivities have user-defined Variables for data storageActivities bind Arguments to in-scope Variables Activities define Arguments to declare the type of data that can flow into or out of an Activity Flow Chart Parallel Sequence Send Message Delay Receive Message Generate Order InArgument OutArgument InArgument OutArgument Process Order Send Report Variables

6 Instances Management Endpoint Management Endpoint Behaviors Persistence Tracking ServiceHostBase … … Tracking Workflow Service Host Activity Library SendMessage ReceiveMessage...

7 Instances Management Endpoint Management Endpoint Behaviors Persistence Tracking ServiceHostBase … … Tracking Workflow Service Host Activity Library SendMessage ReceiveMessage...

8 //Simple to author and maintain, performs poorly [OperationContract] public Picture GetPicture(string name) { //blocking I/O byte[] bytes = mediaService.GetMedia(name); return new Picture { Bytes = bytes, Name = name}; } //Performs well, difficult to author and maintain [OperationContract(AsyncPattern = true)] IAsyncResult public BeginGetPicture(string name, AsyncCallback callback, object state) { return new PictureAsyncResult(name, callback, state); } Picture EndGetPicture(IAsyncResult result) { return PictureAsyncResult.End(result); }

9 //Simple to author and maintain, calls are sequential [OperationContract] public Picture GetPicture(string name) { //blocking I/O byte[] bytes = mediaService.GetMedia(name); //blocking I/O PictureInfo info = pictuerInfoService.GetPictureInfo(name); return new Picture { Bytes = bytes, PictureInfo = info }; } //calls can be made in parallel, difficult to author and maintain [OperationContract(AsyncPattern = true)] IAsyncResult public BeginGetPicture(string name, AsyncCallback callback, object state) { return new BiggerPictureAsyncResult(name, callback, state); } Picture EndGetPicture(IAsyncResult result) { return BiggerPictureAsyncResult.End(result); }

10 Workflow Runtime Client Operation I/O Scheduler Parallel GetMedia GetPictureInfo Sequence GetMedia Other Activities

11 GetMedia Client Picture Service Media Service GetPictureInfo GetPicture Picture Info Service

12

13 Try Catch Finally Exception Handling Logic Process Message Variables Sequence Flow In Transaction Scope Variables Receive Message CompensableActivity Compensation Logic Body Variables Do X Compensate X

14 Submit Task JobId = 123 Task Complete JobId = 123 3. Send 4. Receive 1. Start Job 123 6. Job 123 Complete Application Application State 2. Store Job 123 5. Lookup Job 123 JobId 789 JobId 456 JobId 123 JobId 123

15 Correlation Query Channels Context SendMessage/ReceiveMessage + CorrelationHandle Instance Store Instance Store Content (poid=123)

16 Workflow Submit Task Task Complete 2. Send 4. Receive 1. Start Job 123 6. Job 123 Complete Correlation Handle Query Results JobId=123 Query Results JobId=123 Application State JobId 789 JobId 456 JobId 123 JobId 123 Correlation Query JobId = 123 Correlation Query JobId = 123 Send Message Receive Message 3. Store workflow with query results 5. Lookup workflow using query results

17 Picture Info Service GetMedia Client Picture Service Media Service GetPictureInfo GetPicture Picture Context Based Correlation Content Based Correlation Media PictureInfo

18

19 [OperationContract] public void SubmitOrder(Order order) { // your code here } [OperationContract] public void SubmitOrder(Order order) { // your code here } Workflow Service Host Persistence Tracking IIS/WAS Site/Service Configuration Tracking IIS Manager Management Control Enumeration Tracking IIS Manager Management Control Enumeration Tracking Management Endpoint Management Endpoint Tracking Instances WCF + WF + "Dublin" PowerShell Management APIs

20

21

22

23

24

25 Please fill out your evaluation for this session at: This session will be available as a recording at: www.microsoftpdc.com

26

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

28 Correlation Query Channels Cookies Context SendMessage/ReceiveMessage + CorrelationHandle Instance Store Instance Store Body Content (poid=123)

29 Instances Management Endpoint Management Endpoint Behaviors Persistence Tracking IIS/WAS Site/Service Configuration Service Host [OperationContract] public void SubmitOrder(Order order) { // your code here } [OperationContract] public void SubmitOrder(Order order) { // your code here } … … Tools Trace Viewer Test Client Tracking Designer Debugger IIS Manager Management Control Enumeration Tracking IIS Manager Management Control Enumeration Tracking Management Endpoint Management Endpoint Metadata Tracking … … WCFWCF + WFWCF + WF + "Dublin" Workflow Service Host Activity Library SendMessage ReceiveMessage … Channels (HTTP, TCP, NamedPipes, …) Config Editor PowerShell Management APIs

30

31 Host WF Runtime Tooling VS Designer VS Debugger Rehosted Designer Workflow Activity Library

32 Application Submit Order POId = 123 Update Order POId = 123 POId 789 POId 456 POId 123 Application State 1. Receive 2. Store PO 123 3. Receive 4. Lookup PO 123 5. Store PO 123

33 Xaml GetMedia(Name) Client Picture Service Media Service Picture Info Service PictureInfo GetPictureInfo(Name) Picture GetPicture(Name)

34


Download ppt " Ed Pinto PM Microsoft Corporation. Host “Dublin”(IIS/WAS + App Server Extensions) Microsoft ®.NET Workflow Service.exe Host “Dublin”(IIS/WAS + App."

Similar presentations


Ads by Google