Workflow manager 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.
2. Nice to meet you
CTO
sam.vanhoutte@codit.eu
+32 474 849 993
@SamVanhoutte
BizTalk V-TSP
Integration MVP
be.linkedin.com/in/samvanhoutte/
Sam VANHOUTTE
2012 & 2013
2000 Belgium
2004 France
2013 Portugal
Partner of the Year
Award Finalist
Focused on integration solutions
> 60 Active integration customers
Application Integration
International Focus HQ in BE
e-news + SoMe
60 employees
> 50 consultants BizTalk certified
3. Agenda
âą
âą
âą
Microsoft & Workflow â a long history
âą Workflow designer, activities
âą AppFabric Workflow Services
Workflow Manager
âą Architecture
âą Multi-tenancy & isolation
âą Pub / sub
âą Demo
Conclusions
5. Workflow history
2004 >
2007 - 2010
2010 >
2013 >
BizTalk Server
Oslo
AppFabric
Azure
Workflow
XLANG/s
Repository,
M, Quadrant
WCF Workflow
Services
Service Bus &
SharePoint
Modeling
6. The ART of Workflow*
â
Declarative authoring of
programs that coordinate
work, using:
â
â
â
Activities
Runtime
Tooling
* Copyright : Dave Cliffe : Program Manager Workflow
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. AppFabric for Windows Server
WCF WorkflowServiceHost
â
â
â
Hosting Services
Hosting Workflows
Caching
Management Tools
IIS Manager Modules
PowerShell
Services
Persistence
â
AppFabric connect for
BizTalk Server
Code named: Dublin & Velocity
Workflows
Hosting
Monitoring
Caching
Windows Server AppFabric
.NET Framework
Persistence
Runtime Databases
Monitoring
IIS/WAS
Windows Server
8
15. Workflow Manager Infrastructure
IIS
SQL
One App Pool:
WorkflowMgmtPool
One site:
Workflow Management Site
Windows Services
WorkflowService Backend
ServiceBus Backend
ServiceBus Gateway
FabricHostSvc
Workflow Databases
âą WFManagementDB
âą WFInstanceManagementDB
âą WFResourceManagementDB
Service Bus Databases
âą SBManagementDB
âą SBGatewayDatabase
âą SBMessageContainerxx
16. Installing WF Manager
â
Install
â
â
â
Configure
â
â
â
Using WEB Platform Installer (or download center)
Supported on Windows Server 2012, Windows 8, Azure VMs
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 for Windows Server (not service!)
18. Microsoft.Workflow.TestServiceHost
â
â
Part of Workflow Manager Tools for Visual Studio (2012 only!)
TestService (console app)
â
â
â
â
Deploy & run workflows in it
Attach Visual Studio to the process
Update exe.config
Some limitations
18
20. 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
23. Using complex data structures
DynamicValues
â
â
Recursive key-value pairs
Address, using paths
â
â
â
Customer/FirstName > John
Company > Contoso
Regions(2) > LA
Name
Value
Customer
Name
FirstName
LastName
Value
John
Doe
Age
Contoso
EU
US
LA
42
Company
Regions
23
25. Http activities
â
No âHttpReceiveâ activities
â
â
â
â
Use REST api
or Pub/Sub activities
or WorkflowClient
Support for security tokens, REST services âŠ
25
26. Pub/Sub activities
Leveraging Service Bus Topics & 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
27. Conclusions
ï§ BPMN support announced at BTS summit
ï§ SharePoint is biggest customer of
Workflow Manager
ï§ Workflow manager is multi-tenant â
cloud-ready platform
ï§ Look out for upcoming BPM features by
the WABS team
28. Thank you!
Keep in touch.
Call or mail us. Ask questions. Happy to help.
LinkedIn
Twitter
blog
.codit.eu
codit.eu
Newsletter
Pay us
a visit
Notas do Editor
BizTalk ServerXLANG since 2004XLANG with Vision from 2000-2002OsloModeling with Quadrant or MRepository contained all modelModel is the executionResulted in Odata, SQL Server Modeling
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: