Windows Azure Workflows Manager - Running Durable Workflows in the Cloud and on Prem
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Windows Azure Workflows Manager - Running Durable Workflows in the Cloud and on Prem

  • 892 views
Uploaded on

Windows Azure Workflows Manager services was shipped together with Service Bus for Windows Server as part of the major SharePoint 2013 release. Microsoft workflow manager is built to host and......

Windows Azure Workflows Manager services was shipped together with Service Bus for Windows Server as part of the major SharePoint 2013 release. Microsoft workflow manager is built to host and manage workflows in a multi-tenant environment at a high scale, such as Windows Azure.In this session, Sam will give an architectural overview of Workflow Manager and position it in various scenarios. It will also be compared WCF Workflow Services. The concepts of custom activities, deployment, management and workflow hierarchy will be explained. A cloud-based workflow solution will be demonstrated, showing integration between Windows Azure Service Bus, Workflow Manager, Windows Azure BizTalk Services and on premises systems. After the session, attendees should be able to understand the capabilities of Workflow Manager and should have seen how to build distributed workflows in a scalable cloud environment.

BizTalk Summit 2014, London March 03-04

Brought to you by BizTalk360

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
892
On Slideshare
614
From Embeds
278
Number of Embeds
3

Actions

Shares
Downloads
25
Comments
0
Likes
0

Embeds 278

http://www.biztalk360.com 267
http://www.slideee.com 10
http://biztalk360main.staging.wpengine.com 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • BizTalk Server
    XLANG since 2004
    XLANG with Vision from 2000-2002
    Oslo
    Modeling with Quadrant or M
    Repository contained all model
    Model is the execution
    Resulted in Odata, SQL Server Modeling
  • [assembly: XmlnsDefinition("wf://workflow.windows.net/$Current/$Activities", "SearchMovieSample")]
  • The Workflow farm consists of two components: the Workflow Manager and a service bus that facilitates the communication among components within the farm by using the Open Authentication (OAuth protocol). The service bus is a messaging platform that has been running in Azure for some time that now can run on on-premises servers. The Workflow Manager uses the service bus as its core state management and messaging layer. All communication between SharePoint and the Workflow Manager is message based using a well-defined contract for events and management operations happening from SharePoint into the Workflow Manager using a series of Representational State Transfer (REST) HTTP calls. Therefore, the service bus is used for reliable message delivery and a message broker that also keeps the message state and workflow instance state consistent.

    All communications with the workflow farm uses either the HTTP or HTTPS protocol. On servers within the workflow farm, within Internet Information Server (IIS) Manager, you will see one application pool, WorkflowMgmtPool, and one site, Workflow Management Site. A Workflow Manager server also contains the following four Windows NT services:

  • All communications with the workflow farm uses either the HTTP or HTTPS protocol. On servers within the workflow farm, within Internet Information Server (IIS) Manager, you will see one application pool, WorkflowMgmtPool, and one site, Workflow Management Site. A Workflow Manager server also contains the following four Windows NT services:
  • http://msdn.microsoft.com/en-us/library/windowsazure/jj193509(v=azure.10).aspx
    http://msdn.microsoft.com/en-us/library/jj193523(v=azure.10).aspx
  • http://msdn.microsoft.com/en-us/library/windowsazure/jj193509(v=azure.10).aspx
  • http://msdn.microsoft.com/en-us/library/windowsazure/jj193509(v=azure.10).aspx
  • DEMO : USE THE DYNAMIC VALUE MESSAGE EVALUATOR

    Explanation: http://msdn.microsoft.com/en-us/library/windowsazure/jj193441(v=azure.10).aspx

    DynamicValue Path Evaluator Tool : http://code.msdn.microsoft.com/windowsdesktop/DynamicValue-Path-c84f9ade
  • http://msdn.microsoft.com/en-us/library/windowsazure/jj193509(v=azure.10).aspx
    http://msdn.microsoft.com/en-us/library/jj193523(v=azure.10).aspx
  • http://msdn.microsoft.com/en-us/library/windowsazure/jj193509(v=azure.10).aspx
    http://msdn.microsoft.com/en-us/library/jj193523(v=azure.10).aspx

Transcript

  • 1. brought to you by Windows Azure Workflows, a prediction SAM VANHOUTTE
  • 2. Nice to meet you SamVANHOUTTE CTO 6 year - BizTalkV-TSP 1st year - Integration MVP sam.vanhoutte@codit.eu +32 474 849 993 @SamVanhoutte be.linkedin.com/in/samvanhoutte/ > 60 Active integration customers International Focus - HQ in BEFocused on integration solutions 2000 Belgium 2004 France 2013 Portugal 60 employees > 50 consultants BizTalk certifiede-news + SoMe 2012 & 2013 Partner of the Year Award Finalist Application Integration
  • 3. Agenda • Microsoft & Workflow – a long history • Workflow designer, activities • Workflow Manager • Architecture • Multi-tenancy & isolation • Pub / sub • State machines • Conclusions & future
  • 4. Microsoft & Workflow A bit of history
  • 5. Workflow history Oslo Repository, M, Quadrant AppFabric WCFWorkflow Services Azure Workflow Service Bus & SharePoint 2004 > 2007 - 2010 2010 > 2013 > BizTalk Server XLANG/s Modeling
  • 6. The ART of Workflow* * Copyright : Dave Cliffe : Program ManagerWorkflow ➔ Declarative authoring of programs that coordinate work, using: ➔ Activities ➔ Runtime ➔ Tooling
  • 7. Workflow improvements in .NET 4.5 Authoring Improvements Be more efficient when authoring your workflows Versioning Basic building blocks to enable building a versioning story Runtime Enhancements Improve runtime performance and extensibility
  • 8. Scenario AppFabricWorkflows & BizTalk 8 AppFabric WF BizTalk orch. Sentinet Get Create
  • 9. Workflow Manager An overview
  • 10. Workflow Manager 10 Design goals ➔ Multi-tenancy ➔ High-density ➔ Isolation & security ➔ Biggest customer ? Z-Hotel
  • 11. What is Workflow Manager? ➔ Scale & Reliability ➔ Multi-tenancy ➔ Cloud-based Messaging ➔ WF4 Prog Model HTTP & HTTPS WF Backend (.EXE) WF Gateway (IIS) .NET Client Service Bus WF Resources Activity Prog Model Core Runtime Activity Prog Model
  • 12. Architecture
  • 13. Deployment diagram 13
  • 14. Workflow Manager Infrastructure IIS One App Pool: WorkflowMgmtPool One site: Workflow Management Site Windows Services WorkflowService Backend ServiceBus Backend ServiceBus Gateway FabricHostSvc SQL Workflow Databases • WFManagementDB • WFInstanceManagementDB • WFResourceManagementDB Service Bus Databases • SBManagementDB • SBGatewayDatabase • SBMessageContainerxx
  • 15. Installing WF Manager ➔ Install ➔ UsingWEB Platform Installer (or download center) ➔ Supported on Windows Server 2012, Windows 8, AzureVMs ➔ Configure ➔ Using configuration wizard or PowerShell ➔ Create / Join a Farm (high availability / scale-out) ➔ Supported back-ends ➔ SQL Server (Express + higher) & SQL Azure ➔ Service Bus 1.0 forWindows Server (not service!)
  • 16. Testing & Debugging
  • 17. Microsoft.Workflow.TestServiceHost 17 ➔ Part ofWorkflow ManagerTools forVisual Studio (2012 only!) ➔ TestService (console app) ➔ Deploy & run workflows in it ➔ AttachVisual Studio to the process ➔ Update exe.config ➔ Some limitations
  • 18. Multi-tenancy Through scopes & isolation
  • 19. Scopes ➔ Workflow manager scope ➔ Dedicated service bus topic ➔ Gets created at deployment of first workflow ➔ “A scope is a named and securable container for Activities,Workflows, Instances, configuration and child Scopes.” Root Tenant01 HRM Sales Tenant02 Production TenantXX
  • 20. Sandboxing 20 Workflow Manager 1.0Trusted Surface ➔ Set of trusted types & activities ➔ Fully declarative authoring ➔ Compositie custom activities possible ➔ Whitelisting custom activities possible ➔ AllowedTypes.xml (WFWebRootbin & Artifacts folder) ➔ Disable sandboxing • Set-WFServiceConfiguration –ServiceUri:https://server:12290 –Name:WorkflowServiceAllowUnsafeTypes -Value:true
  • 21. Sandboxing .NET Data Types • String • DateTime & TimeSpan • Int32 & Double • Boolean • Guid • ICollection & IList • IDictionary & KeyValuePair • DynamicValue • Exception • Uri WF Manager activities • Dynamic Value • Http Activities • Pub/Sub Activities • Time Activities • Configuration & External variables • Data Type functions System.Activities, except: • InvokeMethod • New • Cast • VisualBasicValue, VisualBasicReference • LambdaValue, LambdaRefernce • TransactionScope • Persist 21 Workflow Manager 1.0Trusted Surface
  • 22. Using complex data structures ➔ Recursive key-value pairs ➔ Address, using paths ➔ Customer/FirstName > John ➔ Company > Contoso ➔ Regions(2) > LA 22 DynamicValues Name Value Customer Name Value FirstName John LastName Doe Age 42 Company Contoso Regions EU US LA
  • 23. External communication Pub/Sub & Http activities
  • 24. Http activities 24 ➔ No ‘HttpReceive’ activities ➔ Use REST api ➔ or Pub/Sub activities ➔ or WorkflowClient ➔ Support for security tokens, REST services …
  • 25. Pub/Sub activities 25 ➔ Leveraging Service BusTopics & Subscriptions Activities ➔ BuildMatchAllFilter activity > define filter ➔ Subscribe activity > create SB subscription behind the scenes ➔ ReceiveNotification ➔ With Filter > temporary subscription, deleted after 1st message ➔ Using SubscriptionHandle > subscription remains existing ➔ Unsubscribe (implicitly when subscriptionhandle out of scope)
  • 26. Demo 01 Pub / Sub & Http activities Integration withWABS 26
  • 27. 27 Fancy Order App Order Process Workflow Manager BizTalk Services Order Web API On prem SQL databaseFTP Server EDIFACT DESADV ON COMPLETE ADAPTER SERVICE
  • 28. Demo 02 State machines Twilio phone call orchestrated byWF Manager 28
  • 29. Twilio phone call state machine 29 Twilio API Flight call State machine Flight check Web API Service bus topic Tracking subscriptionPhone logger service Phone front end SignalR SvcBus Message Pump
  • 30. Level 3 Level 2 Level 1 Welcome message 1. Check in 1. With luggage 2. Without luggage 2. Upgrade flight 1. To business 2. To 1st class Cancel flight 1. Confirm 2. Leave Contest : call <removed> (toll free)
  • 31. Conclusions  Workflow manager is multi-tenant & cloud-ready platform  Look out for upcoming BPM features by theWABS team  BPMN Support announced
  • 32. Thank you! Keep in touch. LinkedIn blog .codit.eu codit.eu Newsletter @Sam Vanhoutte Pay us a visit