32
brought to you by BIZTALK SUMMIT 2014, LONDON MARCH 03-04 sessio ns. discussions. networking and more Windows Azure Workflows, a prediction SAM VANHOUTTE

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

Embed Size (px)

DESCRIPTION

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

Citation preview

  • 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 [email protected] +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 (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