Download presentation
Presentation is loading. Please wait.
Published byNoreen Dorsey Modified over 9 years ago
2
Brian Noyes Chief Architect IDesign Inc. SOA401
3
Chief Architect IDesign Inc. (www.idesign.net) Microsoft Regional Director MVP Microsoft MVP Connected Systems About Brian Publishing Developing Applications with Windows Workflow Foundation, LiveLessons training DVD, June 2007 Smart Client Deployment with ClickOnce, Addison Wesley, January 2007 Data Binding in Windows Forms 2.0, Addison Wesley, January 2006 MSDN Magazine, MSDN Online, CoDe Magazine, The Server Side.NET, asp.netPRO, Visual Studio Magazine Speaking Microsoft Tech∙Ed U.S., Europe, Malaysia, Visual Studio Connections, DevTeach, INETA Speakers Bureau, MSDN Webcasts E-mail:brian.noyes@idesign.netbrian.noyes@idesign.net Blog:http://briannoyes.nethttp://briannoyes.net
4
Agenda SOA Overview WF Service Capabilities Exposing WF Workflows as Services Consuming Services from Workflows Workflow 4.0 Coming Changes Workflows in the Cloud
5
SOA Overview Service Orientation is a way of building composite applications A service is a composable unit of processing and data exposed to consumers Details of the implementation are hidden from the consumer of the service A further abstraction from objects or components
6
SOA Tenets Services are autonomous Services share schema and contract, not type Services are compatible based on policy Service boundaries are explicit
7
Workflow as Orchestration Loan Application Process Submit Loan Application Send to Reviewer Fund Application Approve Application Validate Application Notification Service Funding Service Approval Service Validation Service Notification Biz Layer Funding Biz Layer Approval Biz Layer Validation Biz Layer Notification Data Layer Funding Data Layer Approval Data Layer ExchangeSQL dB
8
Workflow as Service Operation Loan Application Process Debit Account Transfer Funds Credit Account Approve Transfer Debit Manager Fund Manager Credit Manager Authorization Manager Transfer Money
9
Workflow Coordination Loan Application Process Submit Loan Application Send to Reviewer Fund Application Approve Application Validate Application Loan Approval Process Send to Reviewer Approve Application Validate Application
10
Agenda SOA Overview WF Service Capabilities Exposing WF Workflows as Services Consuming Services from Workflows Workflow 4.0 Coming Changes Workflows in the Cloud
11
WF Service Capabilities WF leverages WCF’s ability to define, expose, and call services Interoperable Extensible Productive Complies with SOA tenets
12
WF Service Capabilities Expose workflows as services Can be clients to services ReceiveActivity Activities as service operation implementation SendActivity Custom activity encapsulating a proxy
13
WF Service Capabilities WF/WCF supply supporting bindings and hosting capabilities to make it easy to expose the WF service capabilities Bindings: BasicHttpContextBinding NetTcpContextBinding WSHttpContextBinding WorkflowServiceHost
14
Agenda SOA Overview WF Service Capabilities Exposing WF Workflows as Services Consuming Services from Workflows Workflow 4.0 Coming Changes Workflows in the Cloud
15
Exposing Workflows as Services Add ReceiveActivity to workflow Set service contract/method properties Bind input parameters/return values Create host application WorkflowServiceHost – self-hosted WorkflowServiceHostFactory – IIS-hosted Use Workflow compatible bindings NetTcpContextBinding BasicHttpContextBinding WSHttpContextBinding
16
Context Bindings Round trip workflow instance ID in custom header Similar to cookie passing in a browser Uses WCF contexts to store header info Not required to call workflow services, but makes it much easier Automatic routing by workflow runtime to target workflow instance
17
Multiple Clients per Workflow Will need to extract instanceID from message headers Proxy inner channel context manager
18
Exposing Workflows as Services
19
Agenda SOA Overview WF Service Capabilities Exposing WF Workflows as Services Consuming Services from Workflows Workflow 4.0 Coming Changes Workflows in the Cloud
20
Consuming Services from Workflows SendActivity acts as a WCF proxy Needs service contract interface that it will be calling Needs proxy configuration to specify binding and endpoint information
21
SendActivity Limitations Default security on NetTcpContextBinding and WSHttpContextBinding are Windows Authentication based on host process identity Default security on BasicHttpBinding is None Can configure a client certificate for certificate authentication in host process app.config No easy way to use username/password or token authentication Solution: custom activity that encapsulates a normal WCF proxy
22
Consuming Services from Workflows
23
Agenda SOA Overview WF Service Capabilities Exposing WF Workflows as Services Consuming Services from Workflows Workflow 4.0 Coming Changes Workflows in the Cloud
24
What’s New in 4.0? Specific to Services SendMessage / ReceiveMessage activities replace Send/Receive activities Better integration with WCF capabilities Easier correlation for calls between workflows Across WF...?TONS!
25
Agenda SOA Overview WF Service Capabilities Exposing WF Workflows as Services Consuming Services from Workflows Workflow 4.0 Coming Changes Workflows in the Cloud
26
Set of new activities for integrating with Cloud Services Run workflows in the cloud Scalable, robust, reliable infrastructure for running workflows
27
Workflows in the Cloud Child Workflow Parent Workflow Invoke Sub-Process Aggregate Results Notify Client Start Process Step 1 Step 2 Client App
28
Summary WF fits nicely into the future of cloud computing WF fits nicely into the SOA picture with.NET 3.5 and 4.0 capabilities Consider WF for front-end service coordination (orchestration) Consider WF for service-processing implementation Can be used for workflow–workflow coordination
29
Resources IDesign WF Master Class Developing Applications with Windows Workflow Foundation, Brian Noyes, LiveLesson training DVD http://www.softinsight.com/LiveLesson http://www.softinsight.com/LiveLesson Essential Windows Communication Foundation (WCF): For.NET Framework 3.5, Resnick, Crane, Bowen, Addison Wesley Pro WF, Bruce Bukovics, Apress Essential Windows Workflow Foundation, Dharma Shukla and Bob Schmidt, Addison Wesley, 2006 http://www.awprofessional.com/bookstore/product.asp?isbn=0 321399838&rl=1 http://www.awprofessional.com/bookstore/product.asp?isbn=0 321399838&rl=1 E-mail: brian.noyes@idesign.netbrian.noyes@idesign.net Blog: http://briannoyes.nethttp://briannoyes.net
30
www.idesign.net
31
Track Resources Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub. Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub. SOA www.microsoft.com/soa msdn.microsoft.com/biztalk www.microsoft.com/biztalk “Dublin” www.microsoft.com/net/dublin “Oslo” msdn.microsoft.com/oslo www.microsoft.com/net/oslo.aspx msdn.microsoft.com/wcf msdn.microsoft.com/wf www.microsoft.com/net msdn.microsoft.com/azure/netservices www.microsoft.com/azure/netservices twitter.com/dotnetservices
32
www.microsoft.com/teched Sessions On-Demand & Community http://microsoft.com/technet Resources for IT Professionals http://microsoft.com/msdn Resources for Developers www.microsoft.com/learning Microsoft Certification and Training Resources www.microsoft.com/learning Microsoft Certification & Training Resources Resources Required Slide Speakers, TechEd 2009 is not producing a DVD. Please announce that attendees can access session recordings at TechEd Online. Required Slide Speakers, TechEd 2009 is not producing a DVD. Please announce that attendees can access session recordings at TechEd Online.
33
Complete an evaluation on CommNet and enter to win! Required Slide
34
© 2009 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. Required Slide
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.