SlideShare a Scribd company logo
Presentation by Mark Bauman .NET Developers Group
What is Workflow? In general terms workflow is: Work to do (activities) and the related business process flow A term used to describe activity tasks, procedural steps, and the people involved with the process A word that generates 3,670,000 hits on Google
Some Workflow Scenarios Financial team document review and approval process IT incident open form with on-call email alerts and form archival Automated document move from public SharePoint library to controlled permissions based library Document expiration date move to archive repository Calendar  event driven workflows Shopping cart workflow
Microsoft Workflow Overview Workflow Foundation (WF) is a Microsoft technology for defining, executing, and managing workflows. This technology was first released as a part of the .NET 3.0 Framework Workflow is a process that defines and controls the completion of one or more tasks. Workflows typically fall under 2 categories:  Human-centric  (people participation) and  Machine-centric  (system based) WF enabled applications use a declarative programming model rather than a procedural one, separating what to do from when to do it
Microsoft Workflow Overview A Workflow is not directly executable.  It is designed only to exist within another process called the  host Hosts include: SharePoint (MOSS/WSS) Windows console applications Windows service applications Windows forms (WinForms) applications Windows Presentation Foundation (WPF) applications ASP.NET web applications WF is a set of objects that expose functionality, WF does not expose a user interface (UI).  The host exposes the UI to create and manage the workflow
Workflow Authoring/Publishing Workflows can be created  via: SharePoint out-of-the-box:  (no-code OOTB).  Standard templates  include: Approval (routes a document for approval), Collect Feedback (routes a document for review), Collect Signatures (gathers signatures), Disposition Approval (manages document expiration and retention) SharePoint Designer:  (no-code rules based). SPD has a limitation of a single document library or list in a single SharePoint site.  Published as xoml rules file.  Visual Studio:  (code/rules). VS workflow is typically installed as a feature that can be used across multiple SharePoint sites
Workflow Lifecycle The life cycle of the workflow instances are managed by the workflow runtime The WF runtime is responsible for creating, executing, threading, persisting, tracking, communicating execution events, and coordinating transactions
Workflow Architecture
Core WF Namespaces Namespace Description Location System.Workflow.Activities WF Base Activities GAC System.Workflow.ComponentModel WF Core  base classes GAC System.Workflow.Runtime WF Runtime GAC System.WorkflowServices WF Services GAC Microsoft.SharePoint.WorkflowActions SharePoint WF Activity Library C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI
Visual Studio Code Files Visual Studio main workflow files: Workflow1.cs  contains the business logic Workflow1.designer.cs  contains the model definitions Workflow1.rules  contains the serialized rule definitions (stored as an embedded resource in the compiled assembly)
Location of SharePoint Assembly References SharePoint assemblies located in  C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\ISAPI directory
Workflow Activities Activities are the building blocks for workflows, and are  .NET components. They are the steps in a workflow. Activities inherit from the Activity class or the SequenceActivity class
Types of Activities There are  simple  and  composite  activities.  Simple usually does one thing, like send email.  Composite activities act as a container for other activities, such as IfElse Activity categories include: Event Handling, Flow Control, Rules, State Management, Workflow Services, Transactions, Custom Workflow Logic, Exception and Error Handling, etc. There are SharePoint WF Activities, .NET 3.0 Activities, and .NET 3.5 Activities for WCF
Sequential Workflow There are 2 types of  workflows: Sequential and State Machine Sequential Workflow   (linear: progresses from one activity step to next and does not step back)
State Machine State Machine Workflow  (Progresses from State to State:  are more complex and can return to a previous step if required)
SharePoint WF Template/Deployment SharePoint extends WF by introducing the concept of a  workflow template/feature VS 2008 has a deploy tool VS 2005: deploy a custom SharePoint workflow by installing the assembly dll into the GAC, install the feature.xml and workflow.xml files, install the feature via the stsadm.exe, and then activate the feature in the site collection
Correlation Tokens The correlation token is the mechanism the workflow runtime uses to identify the running instance of the workflow Correlation token properties ensure that the single activity object is operating on the correct payload instance and accessing the correct details about the workflow
Workflow Rules WF provides a general-purpose rules engine Rules provide another way to implement business logic that complements code and activities Rules are organized into logical groupings know as  rule sets Rules are stored in the .rules file and are embedded in the assembly
Workflow Persistence Workflows persist when they hit an idle or wait state For SharePoint, the workflow is persisted in the dbo.Workflow and dbo.WorkflowAssociation tables in the SharePoint content database  Non-SharePoint hosts need to build their own tables first and then use the SqlWorkflowPersistenceService or WorkflowPersistenceService.  Need to build the tables using SqlPersistenceService_Logic.sql and SqlPersistenceService_Schema.sql scripts.
Workflow Tracking Enables hosts to observe workflow instances during execution by capturing events that are raised during workflow execution Workflow has one primary service which is SqlTrackingService Built in tracking is actually divided in three parts: Activity Tracking, Workflow Tracking, and User Tracking
Workflow SharePoint UI Forms SharePoint can have any of the following Workflow forms:  Association form, Initiation form, Modification form, Task Edit form Can create custom forms via InfoPath or ASP.NET
Workflow Debugging The WF design and runtime tools include an integrated workflow debugger which attaches to w3wp worker process to debug Be careful not to debug workflows on SharePoint production servers. While you are debugging your workflow,  with break-points enabled, your SharePoint Site will be “halted” for other users
Setting up Visual Studio VS 2008 includes WF Extensions Install WF Project Extensions for VS 2005 VS needs to be installed on a MOSS instance for SharePoint WF development
Useful Links MSDN Workflow Videos: http://channel9.msdn.com/tags/Windows+Workflow/ MSDN Windows Workflow Foundation: http://msdn.microsoft.com/en-us/netframework/aa663328.aspx MSDN Workflow  SharePoint Services Overview: http://msdn.microsoft.com/en-us/library/ms416312.aspx MS SharePoint Team Blog – Workflow: http://blogs.msdn.com/sharepoint/archive/tags/Workflow/default.aspx
Demos SharePoint out-of-the-box SharePoint Designer Visual Studio

More Related Content

PPTX
Windows Workflow
PPTX
Introduction To Windows Workflow Foundation 4.0
PPT
Windows Workflow Foundation
PPTX
Windows Workflow Foundation
PPTX
Introduction to Windows Workflow Foundation
PPTX
Workflow Manager 1.0 SharePoint 2013 Workflows
PPT
Windows Workflow Foundation Introduction
PDF
Windows Workflow Foundation in the Real World
Windows Workflow
Introduction To Windows Workflow Foundation 4.0
Windows Workflow Foundation
Windows Workflow Foundation
Introduction to Windows Workflow Foundation
Workflow Manager 1.0 SharePoint 2013 Workflows
Windows Workflow Foundation Introduction
Windows Workflow Foundation in the Real World

What's hot (20)

PPTX
Windows Azure Workflows Manager - Running Durable Workflows in the Cloud and ...
PDF
Workflow Manager for Software License Optimization
PDF
C# Advanced L10-Workflow Foundation
PDF
[Struyf] Automate Your Tasks With Azure Functions
PPTX
SPS vancouver is it possible to do devops with SharePoint Framework
PPTX
RPI Infor Process Automation Presentation
PPTX
ECS19 - Ingo Gegenwarth - Running Exchange in large environment
PPTX
Install, configure and customize TFS 2013
PPTX
20140211 BTUG.be - Workflow Manager
PPTX
Chris O'Brien - Modern SharePoint development: techniques for moving code off...
PPTX
#SPSBrussels 2017 vincent biret #azure #functions microsoft #flow
PPTX
Activiti bpm
PPTX
Build a SharePoint website in 60 minutes
PPT
TFS Administration Overview
PPTX
Building high scale, highly available websites in SharePoint 2010
PPTX
Workflows for share point 2013
PPTX
SPC Adriatics 2013 - Working with the new SharePoint Online Apps by Toni Pohl
PPTX
Chris O'Brien - Comparing SharePoint add-ins (apps) with Office 365 apps
PPTX
Rpa automation anywhere training in hyderabad
PDF
Deployment Automation in de praktijk
Windows Azure Workflows Manager - Running Durable Workflows in the Cloud and ...
Workflow Manager for Software License Optimization
C# Advanced L10-Workflow Foundation
[Struyf] Automate Your Tasks With Azure Functions
SPS vancouver is it possible to do devops with SharePoint Framework
RPI Infor Process Automation Presentation
ECS19 - Ingo Gegenwarth - Running Exchange in large environment
Install, configure and customize TFS 2013
20140211 BTUG.be - Workflow Manager
Chris O'Brien - Modern SharePoint development: techniques for moving code off...
#SPSBrussels 2017 vincent biret #azure #functions microsoft #flow
Activiti bpm
Build a SharePoint website in 60 minutes
TFS Administration Overview
Building high scale, highly available websites in SharePoint 2010
Workflows for share point 2013
SPC Adriatics 2013 - Working with the new SharePoint Online Apps by Toni Pohl
Chris O'Brien - Comparing SharePoint add-ins (apps) with Office 365 apps
Rpa automation anywhere training in hyderabad
Deployment Automation in de praktijk
Ad

Similar to Workflow Foundation (Wf) Presentation (20)

PPT
Introduction To Windows Workflow In Windows Share Point
PPT
PPTX
Workflow in SharePoint 2010
PPT
DOCX
MS flow.docx
PPSX
Nintex Workflows 2007 Evaluation
PPTX
Sharepoint 2010 document managment and workflow
PPTX
SharePoint Saturday Workflow in Action
PPT
Share point 2013 features Workflow
PPT
Workflow management coalition (wfmc) standards
PDF
Spsto 2013 whats_newinworkflows_amitvasu.
PDF
How to Create SharePoint Workflows
PPT
About work flow
PPT
]project-open[ Workflow Developer Tutorial Part 4
PDF
Processes automation with SharePoint
PPTX
Java workflow engines
PPT
The Future Of Work And Workflow
PPT
Streamlining Business Processes with InfoPath and SharePoint
PPTX
SoCalCodeCamp SharePoint Server 2010 a Developer Platform
PPTX
Share point2013 office365_workflows_sergeluca_spc_adriatics2014
Introduction To Windows Workflow In Windows Share Point
Workflow in SharePoint 2010
MS flow.docx
Nintex Workflows 2007 Evaluation
Sharepoint 2010 document managment and workflow
SharePoint Saturday Workflow in Action
Share point 2013 features Workflow
Workflow management coalition (wfmc) standards
Spsto 2013 whats_newinworkflows_amitvasu.
How to Create SharePoint Workflows
About work flow
]project-open[ Workflow Developer Tutorial Part 4
Processes automation with SharePoint
Java workflow engines
The Future Of Work And Workflow
Streamlining Business Processes with InfoPath and SharePoint
SoCalCodeCamp SharePoint Server 2010 a Developer Platform
Share point2013 office365_workflows_sergeluca_spc_adriatics2014
Ad

Recently uploaded (20)

PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Empathic Computing: Creating Shared Understanding
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
KodekX | Application Modernization Development
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Chapter 3 Spatial Domain Image Processing.pdf
MIND Revenue Release Quarter 2 2025 Press Release
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Empathic Computing: Creating Shared Understanding
20250228 LYD VKU AI Blended-Learning.pptx
Spectroscopy.pptx food analysis technology
Per capita expenditure prediction using model stacking based on satellite ima...
The AUB Centre for AI in Media Proposal.docx
Understanding_Digital_Forensics_Presentation.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
MYSQL Presentation for SQL database connectivity
Digital-Transformation-Roadmap-for-Companies.pptx
Big Data Technologies - Introduction.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Encapsulation_ Review paper, used for researhc scholars
Unlocking AI with Model Context Protocol (MCP)
KodekX | Application Modernization Development
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Chapter 3 Spatial Domain Image Processing.pdf

Workflow Foundation (Wf) Presentation

  • 1. Presentation by Mark Bauman .NET Developers Group
  • 2. What is Workflow? In general terms workflow is: Work to do (activities) and the related business process flow A term used to describe activity tasks, procedural steps, and the people involved with the process A word that generates 3,670,000 hits on Google
  • 3. Some Workflow Scenarios Financial team document review and approval process IT incident open form with on-call email alerts and form archival Automated document move from public SharePoint library to controlled permissions based library Document expiration date move to archive repository Calendar event driven workflows Shopping cart workflow
  • 4. Microsoft Workflow Overview Workflow Foundation (WF) is a Microsoft technology for defining, executing, and managing workflows. This technology was first released as a part of the .NET 3.0 Framework Workflow is a process that defines and controls the completion of one or more tasks. Workflows typically fall under 2 categories: Human-centric (people participation) and Machine-centric (system based) WF enabled applications use a declarative programming model rather than a procedural one, separating what to do from when to do it
  • 5. Microsoft Workflow Overview A Workflow is not directly executable. It is designed only to exist within another process called the host Hosts include: SharePoint (MOSS/WSS) Windows console applications Windows service applications Windows forms (WinForms) applications Windows Presentation Foundation (WPF) applications ASP.NET web applications WF is a set of objects that expose functionality, WF does not expose a user interface (UI). The host exposes the UI to create and manage the workflow
  • 6. Workflow Authoring/Publishing Workflows can be created via: SharePoint out-of-the-box: (no-code OOTB). Standard templates include: Approval (routes a document for approval), Collect Feedback (routes a document for review), Collect Signatures (gathers signatures), Disposition Approval (manages document expiration and retention) SharePoint Designer: (no-code rules based). SPD has a limitation of a single document library or list in a single SharePoint site. Published as xoml rules file. Visual Studio: (code/rules). VS workflow is typically installed as a feature that can be used across multiple SharePoint sites
  • 7. Workflow Lifecycle The life cycle of the workflow instances are managed by the workflow runtime The WF runtime is responsible for creating, executing, threading, persisting, tracking, communicating execution events, and coordinating transactions
  • 9. Core WF Namespaces Namespace Description Location System.Workflow.Activities WF Base Activities GAC System.Workflow.ComponentModel WF Core base classes GAC System.Workflow.Runtime WF Runtime GAC System.WorkflowServices WF Services GAC Microsoft.SharePoint.WorkflowActions SharePoint WF Activity Library C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI
  • 10. Visual Studio Code Files Visual Studio main workflow files: Workflow1.cs contains the business logic Workflow1.designer.cs contains the model definitions Workflow1.rules contains the serialized rule definitions (stored as an embedded resource in the compiled assembly)
  • 11. Location of SharePoint Assembly References SharePoint assemblies located in C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\ISAPI directory
  • 12. Workflow Activities Activities are the building blocks for workflows, and are .NET components. They are the steps in a workflow. Activities inherit from the Activity class or the SequenceActivity class
  • 13. Types of Activities There are simple and composite activities. Simple usually does one thing, like send email. Composite activities act as a container for other activities, such as IfElse Activity categories include: Event Handling, Flow Control, Rules, State Management, Workflow Services, Transactions, Custom Workflow Logic, Exception and Error Handling, etc. There are SharePoint WF Activities, .NET 3.0 Activities, and .NET 3.5 Activities for WCF
  • 14. Sequential Workflow There are 2 types of workflows: Sequential and State Machine Sequential Workflow (linear: progresses from one activity step to next and does not step back)
  • 15. State Machine State Machine Workflow (Progresses from State to State: are more complex and can return to a previous step if required)
  • 16. SharePoint WF Template/Deployment SharePoint extends WF by introducing the concept of a workflow template/feature VS 2008 has a deploy tool VS 2005: deploy a custom SharePoint workflow by installing the assembly dll into the GAC, install the feature.xml and workflow.xml files, install the feature via the stsadm.exe, and then activate the feature in the site collection
  • 17. Correlation Tokens The correlation token is the mechanism the workflow runtime uses to identify the running instance of the workflow Correlation token properties ensure that the single activity object is operating on the correct payload instance and accessing the correct details about the workflow
  • 18. Workflow Rules WF provides a general-purpose rules engine Rules provide another way to implement business logic that complements code and activities Rules are organized into logical groupings know as rule sets Rules are stored in the .rules file and are embedded in the assembly
  • 19. Workflow Persistence Workflows persist when they hit an idle or wait state For SharePoint, the workflow is persisted in the dbo.Workflow and dbo.WorkflowAssociation tables in the SharePoint content database Non-SharePoint hosts need to build their own tables first and then use the SqlWorkflowPersistenceService or WorkflowPersistenceService. Need to build the tables using SqlPersistenceService_Logic.sql and SqlPersistenceService_Schema.sql scripts.
  • 20. Workflow Tracking Enables hosts to observe workflow instances during execution by capturing events that are raised during workflow execution Workflow has one primary service which is SqlTrackingService Built in tracking is actually divided in three parts: Activity Tracking, Workflow Tracking, and User Tracking
  • 21. Workflow SharePoint UI Forms SharePoint can have any of the following Workflow forms: Association form, Initiation form, Modification form, Task Edit form Can create custom forms via InfoPath or ASP.NET
  • 22. Workflow Debugging The WF design and runtime tools include an integrated workflow debugger which attaches to w3wp worker process to debug Be careful not to debug workflows on SharePoint production servers. While you are debugging your workflow, with break-points enabled, your SharePoint Site will be “halted” for other users
  • 23. Setting up Visual Studio VS 2008 includes WF Extensions Install WF Project Extensions for VS 2005 VS needs to be installed on a MOSS instance for SharePoint WF development
  • 24. Useful Links MSDN Workflow Videos: http://channel9.msdn.com/tags/Windows+Workflow/ MSDN Windows Workflow Foundation: http://msdn.microsoft.com/en-us/netframework/aa663328.aspx MSDN Workflow SharePoint Services Overview: http://msdn.microsoft.com/en-us/library/ms416312.aspx MS SharePoint Team Blog – Workflow: http://blogs.msdn.com/sharepoint/archive/tags/Workflow/default.aspx
  • 25. Demos SharePoint out-of-the-box SharePoint Designer Visual Studio