SlideShare a Scribd company logo
www.expertpointsolutions.com




          SharePoint 2013 Workflows
Build scalable SharePoint 2013 Staged Workflows to run locally
                                             and in the Cloud

      • Brian Culver ● SharePoint Fest Denver ● March 2013
About Brian Culver

 • SharePoint Solutions Architect for Expert Point Solutions
 • Based in Houston, TX
 • Author
   • SharePoint 2010 Unleashed
   • Upcoming SharePoint 2013 Workflows
   • Various White Papers
 • Speaker and Blogger
Session Agenda


• Why do we use Workflows?

• What about Workflow changed in
  SharePoint 2013

• Why are they better in 2013?

• Workflow Manager 1.0

• Building a Workflow in 2013

• Workflows Best Practices
Why do we use Workflows?

• A workflow is basically a series of tasks that produce an outcome.

• In a business scenario, a workflow is a business process.

• Workflows can be used to automate, solve and improve processes:
  • Help people to collaborate on documents
  • Manage project tasks
  • Help organizations to adhere to consistent business processes
  • Improve organizational efficiency and productivity
  • They enable the people who perform these tasks to concentrate
    on performing the work rather than managing the workflow or
    process.
What about Workflow changed in SharePoint 2013?

• SharePoint 2013 offers two workflow engine flavors:
  • SharePoint 2010 Workflows (based on .NET3.5)
  • SharePoint 2013 Workflows (based on .NET4.x)

• SharePoint 2010 Workflows run within SharePoint (the internal
  workflow host)

• SharePoint 2013 Workflows run outside of SharePoint in the new
  Workflow Manager (formerly labeled as Azure Cloud) Farm
Why are they better in 2013?

• Several improvements in several areas:
  • Workflow Engine
    • For SharePoint 2013 Workflows – taken out of SharePoint
    • Uses Workflow Framework in .NET 4.0 which is much more robust
    • Can be extended and enhanced more easily
    • Much more scalable


  • SharePoint Designer 2013
    • Leverages Visio 2013 to provide a better design experience for
       users and developers.
      • Business user builds the Workflow in Visio 2013 with SharePoint
        2013 Workflow Shapes.
      • Designer/Developer can import into SharePoint Designer 2013
        and/or Visual Studio 2012.
      • Export to Visio 2013 files preserves workflow properties and
        details which makes it much more portable between sites and
        environments.
Why are they better in 2013?

  New Workflow Actions, Components and Conditions
Why are they better in 2013?

Stage Shapes
  • A stage is a container which can contain any number of shapes and
    actions, such as sending an email and logging to the workflow history. A
    stage must have only one path in and one path out.
Why are they better in 2013?

• The following rules apply to stages:
  • A workflow must have at least one stage. A stage, by default, has a
    Start, Enter and Exit shape SharePoint 2013 Workflow template.
  • An explicit Start shape is required outside of the stage for the entire
    diagram. An explicit Terminate shape outside of the stage is not
    required.
  • Stage containers cannot be nested. Use other containers within a
    stage to nest, such as a Step container.
  • Stop Workflow shapes may exist within a stage.
  • At the top level, the workflow can contain only stages, conditional
    shapes, and Start and Terminate terminators. All other shapes must
    be contained within a stage.
Why are they better in 2013?

Loop shapes
  • Loops are a series of connected shapes that will execute as a single unit
    within a loop container. Like stages, loops are a container shape with an
    Enter and Exit shape. A loop shape also requires that an Enter and Exit
    shape be added to the edges of the container to define the paths in and
    out of the loop. Workflows in SharePoint Server 2013 support two types
    of loops: loop n times and loop with condition.
Why are they better in 2013?

• The following rules apply to loops:
  • Loops must be within a stage.
  • Steps may be within a loop.
  • Loops may have only one entry and one exit point.
Why are they better in 2013?

Step shapes
  • Steps represent a group of sequential actions to be performed as a
    single unit.
Why are they better in 2013?

• The following rules apply to steps:
  • Steps must be within a stage.
  • Steps may be within a loop.
  • Steps may have only one entry and one exit point.
  • Steps can contain steps.




To learn more about the workflow Shapes available in the SharePoint
Designer 2013, go to:
http://msdn.microsoft.com/en-us/library/jj164055.aspx
Why are they better in 2013?

• Designer Improvements (with Visio 2013 only)
  • Text-Based Designer
  • Visual Designer
Demo
Visual Designer vs Text-Based Designer
Why are they better in 2013?

• So the bad news?
There is no bad news. There is only news.

• SharePoint 2013 does not support all the
actions SharePoint 2010 did.

• Why?

• WorkAround:
  • Invoke a SharePoint 2010 Workflows
    via the SharePoint Interop (Start
    Another Workflow action).
Why are they better in 2013?

SharePoint 2013 Workflows Architecture

• SharePoint 2013 workflows are powered by the .NET 4.x workflow
infrastructure or Windows Workflow Foundation 4 (WF4).
• WF4 was substantially redesigned from prior versions in that it is built
on the messaging functionality provided by the Windows Communication
Foundation (WCF).
• In WF4 workflows, each business process step is represented by a
workflow "activity". Thus, workflow activities represent the underlying
managed objects whose methods drive workflow behaviors.
Why are they better in 2013?

SharePoint 2013 Workflows Architecture
Why are they better in 2013?

SharePoint 2013 Workflows Architecture

• In SharePoint Designer, workflow actions are the user-friendly
representations of the underlying activities from WF4.
• As the workflow executes, each workflow action interacts with the
workflow execution engine which in turn acts on the corresponding
activities.
• The workflow activities are implemented declaratively by using XAML.
• Workflow activities are invoked by using loosely coupled web services
that use messaging APIs (Windows Communication Foundation or WCF)
to communicate with SharePoint Server 2013.
Why are they better in 2013?

SharePoint 2013 Workflows Architecture

• In SharePoint Server 2013, the Workflow Manager Client 1.0 hosts the
WF4 engine and WCF web services.
• Together, the Workflow Manager Client 1.0, SharePoint 2013, and
SharePoint Designer 2013 each provide the functionality that makes up the
SharePoint 2013 Workflow Architecture.
• The Workflow Manager Client 1.0 provides the management of workflow
definitions and hosts the execution processes for each workflow instance.
• The SharePoint 2013 platform provides the framework for building
SharePoint workflows and storing the SharePoint workflows.
Demo
Installing Workflow Manager 1.0
Workflow Manager 1.0

Installing the Workflow Manager 1.0

• Download “Workflow Manager 1.0”
  • http://www.microsoft.com/en-us/download/details.aspx?id=35375

• Install
  • Prerequisites: http://technet.microsoft.com/en-us/library/jj193451.aspx
  • WorkflowManager.exe in the Application Servers or Workflow Farm Servers.
  • For SharePoint 2013, WorkflowClient.exe in the Web Front Ends.

• Run the “Workflow Manager Configuration”
  • “Configure Workflow Manager with Custom Settings”
    • Note: Do not pick “Recommended” option
  • For more information: http://technet.microsoft.com/en-
    us/library/jj658588.aspx
Workflow Forms

The New Story

• Is InfoPath 2013 going away?

  • .NET 4 Workflows and Forms
     • Generates .ASPX pages
     • Can work with InfoPath 2013 as well


  • InfoPath 2013 does have new improvements.


  • Web service, WCF, REST, JSON
Workflow Forms

The New Story

• New features in InfoPath 2013
  • The development experience has been drastically improved to work
    with Visual Studio 2012
  • InfoPath can now be deployed as a sandbox solution
  • The publishing process has been simplified
  • SharePoint List forms have been enhanced
  • An InfoPath form Web part has been added
  • The InfoPath Form Service provides richer Web forms
  • The InfoPath Form Service follows better compliant standards
  • InfoPath now supports digital signatures
Building a Workflow in 2013

Reusable and Global Reusable Workflows
• Reusable workflows were introduced in SharePoint Designer 2010 along with
site workflows. Reusable workflows are associated with a content type instead of a
specific list.
    • SharePoint provides the ability to reuse content types across multiple sites
      and lists, and enables associated workflows to execute on any list where the
      content type has been configured for use.
    • Reusable workflows are only aware of site columns on the associated content
      type, and certain core list metadata columns that are shared across all lists
      such as “Created” and “Created By”.
    • Global Reusable workflows are available for use anywhere within a Site
      Collection, but the workflow and associated content type must be created in
      the top-level site of a site collection.
    • One of the most powerful features of the reusable workflow is the ability to
      export for use in other site collections, web applications and SharePoint
      farms.
    • SharePoint Designer automatically packages the workflow and dependencies
      including forms as a solution package (.WSP) that can be deployed as a
      sandbox solution, making it possible to also deploy them to hosted SharePoint
      environments such as Office 365.
Building a Workflow in 2013

Site Workflows

• Site workflows were new in SharePoint 2010. Site workflows are published
to a site rather than a content type or list. Since they are not associated with a
specific list or content type, they are not associated with any specific list item
(or within the workflow context, the current item). Since a site workflow does
not have the specific list item associated with the workflow context, some
workflow actions are not available, such as workflow actions triggered when
the current list item changes.
   • Site workflows also do not have events in SharePoint that trigger them.
     Therefore, site workflows have to be started manually either directly by
     user or programmatically.
   • Site workflows are essentially best designed to perform administrative
     functions on the sites upon which they execute.
   • Site workflows greatly benefited from custom workflow actions which can
     expand the capabilities far beyond what is provided out of the box.
Building a Workflow in 2013

List Workflows

• List workflows have been supported since SharePoint 2007 in SharePoint
Designer. A list workflow is designed and published directly to a specific list
instance.
  • List workflows do offer a key feature not found in site workflows or
    reusable workflows, the ability to access list columns (columns created
    directly on the list).
  • A very annoying flaw in list workflows is their affinity to the list where they
    were published.
  • Cannot be moved or reused on another list or another site.
  • List workflows have a place where a small and specific process is
    required.
  • They are not good choices for complex workflows or workflows that may
    need to be used elsewhere, such as another site or list.
Building a Workflow in 2013

• Lets build a simple vacation request workflow
Demo
Building a workflow in SharePoint 2013
Workflows Best Practices

• Document the High-Level workflow
  • Then break it up into smaller units

• Plan before you build
  • Most workflows do not look the same after a couple iterations
  • Put in the time to carefully understand the workflow and identify issues

• Create Reusable workflows
  • Portable and reusable

• Create smaller, simpler workflows (when possible)
  • Larger workflows are harder to reconfigure
  • Larger workflows are harder to fix and diagnose
  • Larger workflows increase complexity of logic
Questions




                ?
                    ?
      ?

            ?
Constructive Feedback Is Appreciated


                                       Great information,
                                       but would like to
                                       have learned more
                       Brian – Your    about [Insert Topic]
                       presentation
                       was …

    Thanks!



              Good
              Demos!
Brian Culver, MCM
Twitter:
@spbrianculver

E-mail:
brian.culver@expertpointsolutions.com   Thank you!
Blog:
http://blog.expertpointsolutions.com/

More Related Content

What's hot (20)

PPTX
SharePoint Workflow Best Practices
JoAnna Cheshire
 
PPT
SharePoint 2010 Workflows
Phil Wicklund
 
PPTX
Configuring Workflows in SharePoint 2010
Michal Pisarek
 
PPT
Building Workflows for SharePoint 2010 with SharePoint Designer and Visio
Elaine Van Bergen
 
PDF
SharePoint Saturday Kansas City 2015 - Build scalable SharePoint 2013 Workflows
Brian Culver
 
PPTX
Share Point 2010 Workflow
Phuong Nguyen
 
PPTX
SharePoint Designer Workflows - Nuts, Bolts and Examples
Drew Madelung
 
PPTX
Mai Omar Desouki - What's new in SharePoint Designer 2013 #ESPC 2013
Mai Omar Desouki
 
PPTX
5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shar...
Swiss SharePoint Club
 
PDF
How to develop maintainable custom Workflows in Office365 SharePoint online 2...
Prashant G Bhoyar (Microsoft MVP)
 
PPTX
Writing futuristic workflows in office 365 SharePoint 2013 2016 on premise
Prashant G Bhoyar (Microsoft MVP)
 
PDF
SharePoint Fest Seattle 2017 Getting started with office365 sharepoint online...
Prashant G Bhoyar (Microsoft MVP)
 
PDF
Advanced Office365 Sharepoint online Workflows
Prashant G Bhoyar (Microsoft MVP)
 
PPT
West Monroe Partners - SharePoint 2010 Workflow - learn the secrets to greate...
Coskun Cavusoglu
 
DOCX
Demonstration steps visio 2010 share point workflow
Jason Hamlin
 
PDF
Building Scalable SharePoint 2013 Workflows - WF101 - SPFestDC
Brian Culver
 
PPTX
Bend Sharepoint Approval Workflow to your Will
Tamara Bredemus
 
PPTX
Workflows in SharePoint 2013: Architecture #spsbe
Spikes NV
 
PDF
Office Add-Ins
Spikes NV
 
PPTX
SharePoint Workflows 2013. What's new?
Sergei Leshchenko
 
SharePoint Workflow Best Practices
JoAnna Cheshire
 
SharePoint 2010 Workflows
Phil Wicklund
 
Configuring Workflows in SharePoint 2010
Michal Pisarek
 
Building Workflows for SharePoint 2010 with SharePoint Designer and Visio
Elaine Van Bergen
 
SharePoint Saturday Kansas City 2015 - Build scalable SharePoint 2013 Workflows
Brian Culver
 
Share Point 2010 Workflow
Phuong Nguyen
 
SharePoint Designer Workflows - Nuts, Bolts and Examples
Drew Madelung
 
Mai Omar Desouki - What's new in SharePoint Designer 2013 #ESPC 2013
Mai Omar Desouki
 
5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shar...
Swiss SharePoint Club
 
How to develop maintainable custom Workflows in Office365 SharePoint online 2...
Prashant G Bhoyar (Microsoft MVP)
 
Writing futuristic workflows in office 365 SharePoint 2013 2016 on premise
Prashant G Bhoyar (Microsoft MVP)
 
SharePoint Fest Seattle 2017 Getting started with office365 sharepoint online...
Prashant G Bhoyar (Microsoft MVP)
 
Advanced Office365 Sharepoint online Workflows
Prashant G Bhoyar (Microsoft MVP)
 
West Monroe Partners - SharePoint 2010 Workflow - learn the secrets to greate...
Coskun Cavusoglu
 
Demonstration steps visio 2010 share point workflow
Jason Hamlin
 
Building Scalable SharePoint 2013 Workflows - WF101 - SPFestDC
Brian Culver
 
Bend Sharepoint Approval Workflow to your Will
Tamara Bredemus
 
Workflows in SharePoint 2013: Architecture #spsbe
Spikes NV
 
Office Add-Ins
Spikes NV
 
SharePoint Workflows 2013. What's new?
Sergei Leshchenko
 

Similar to Build scalable SharePoint 2013 Staged Workflows to run locally and in the Cloud (20)

PDF
WF 103 - Build scalable SharePoint 2013 Staged Workflows to run locally and i...
Brian Culver
 
PDF
SharePointFest 2013 Washington DC - WF 204 - Build scalable SharePoint 2013 S...
Brian Culver
 
PDF
Ridwan sassman Sharepoint Saturday Sharepoint 2013 Workflows
ridwansassman
 
PDF
Edgewater Consulting Mastering SharePoint Designer Workflows
Edgewater
 
PPTX
Drew madelung sp designer workflows - sp-biz
Drew Madelung
 
PPT
Introduction To Windows Workflow In Windows Share Point
Kashif Akram
 
PPTX
Getting Stuff Done! Managing Tasks with SharePoint Designer Workflows by Chri...
SPTechCon
 
PPTX
2012 MindSurf - Augmenting Business Process with SharePoint
Don Donais
 
PPTX
SPCA2013 - Windows Workflow Manager for the IT Pro
NCCOMMS
 
PPTX
Automate business processes using SharePoint Designer Workflows
Edgewater
 
PPTX
WF 101 - SharePoint Designer 2013 Workflows: An Introduction
Knut Relbe-Moe [MVP, MCT]
 
PPTX
What's new in SharePoint 2013
sboldt
 
PPTX
SharePoint Saturday UK - Workflow Evolution
Alan Richards
 
PDF
Next Generation Workflows - SharePoint Day 2013
Raona
 
PPTX
SharePoint Designer 2013 Workflows - SP Intersection
Asif Rehmani
 
PPTX
Knut wf 203 get started with designer workflows
Knut Relbe-Moe [MVP, MCT]
 
PPTX
Workflows for share point 2013
Prabath Fonseka
 
PPT
Workflow Foundation (Wf) Presentation
uppershores
 
PPTX
SharePoint Workflows - SharePoint Saturday Twin Cities April 2012
Don Donais
 
PPTX
Workflow in SharePoint 2010
barryboudreau
 
WF 103 - Build scalable SharePoint 2013 Staged Workflows to run locally and i...
Brian Culver
 
SharePointFest 2013 Washington DC - WF 204 - Build scalable SharePoint 2013 S...
Brian Culver
 
Ridwan sassman Sharepoint Saturday Sharepoint 2013 Workflows
ridwansassman
 
Edgewater Consulting Mastering SharePoint Designer Workflows
Edgewater
 
Drew madelung sp designer workflows - sp-biz
Drew Madelung
 
Introduction To Windows Workflow In Windows Share Point
Kashif Akram
 
Getting Stuff Done! Managing Tasks with SharePoint Designer Workflows by Chri...
SPTechCon
 
2012 MindSurf - Augmenting Business Process with SharePoint
Don Donais
 
SPCA2013 - Windows Workflow Manager for the IT Pro
NCCOMMS
 
Automate business processes using SharePoint Designer Workflows
Edgewater
 
WF 101 - SharePoint Designer 2013 Workflows: An Introduction
Knut Relbe-Moe [MVP, MCT]
 
What's new in SharePoint 2013
sboldt
 
SharePoint Saturday UK - Workflow Evolution
Alan Richards
 
Next Generation Workflows - SharePoint Day 2013
Raona
 
SharePoint Designer 2013 Workflows - SP Intersection
Asif Rehmani
 
Knut wf 203 get started with designer workflows
Knut Relbe-Moe [MVP, MCT]
 
Workflows for share point 2013
Prabath Fonseka
 
Workflow Foundation (Wf) Presentation
uppershores
 
SharePoint Workflows - SharePoint Saturday Twin Cities April 2012
Don Donais
 
Workflow in SharePoint 2010
barryboudreau
 
Ad

More from Brian Culver (20)

PDF
Real World SharePoint Framework and Azure Services
Brian Culver
 
PDF
Real World SharePoint Framework and Azure Services
Brian Culver
 
PDF
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Brian Culver
 
PDF
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Brian Culver
 
PDF
Share Upgrading and Migrating to SharePoint 2016 Like a Pro
Brian Culver
 
PDF
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Brian Culver
 
PDF
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Brian Culver
 
PPTX
Convert your Full Trust Solutions to the SharePoint Framework (SPFx) in 1 hour
Brian Culver
 
PDF
Houston TechFest 2017- Migrate and Upgrade to 2016 Succesfully
Brian Culver
 
PPTX
Real World Add-in Development for Office365
Brian Culver
 
PDF
Building SharePoint 2016 Hybrid the right way
Brian Culver
 
PDF
SPSHOU - Upgrading and Migrating to SharePoint 2016 like a Pro
Brian Culver
 
PDF
HSPUG Loving one drive for business as a productivity tool
Brian Culver
 
PDF
SPT 104 Unlock your big data with analytics and BI on Office 365
Brian Culver
 
PDF
Spt 101 Loving Onedrive for business as a productivity tool
Brian Culver
 
PDF
SPS Utah 2016 - Unlock your big data with analytics and BI on Office 365
Brian Culver
 
PDF
Loving OneDrive for Business as a Productivity Tool
Brian Culver
 
PDF
Unlock your Big Data with Analytics and BI on Office 365
Brian Culver
 
PDF
SharePoint 2013 Search Driven Sites - SPSHOU
Brian Culver
 
PDF
Unlock your Big Data with Analytics and BI on Office 365 - OFF103
Brian Culver
 
Real World SharePoint Framework and Azure Services
Brian Culver
 
Real World SharePoint Framework and Azure Services
Brian Culver
 
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Brian Culver
 
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Brian Culver
 
Share Upgrading and Migrating to SharePoint 2016 Like a Pro
Brian Culver
 
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Brian Culver
 
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Brian Culver
 
Convert your Full Trust Solutions to the SharePoint Framework (SPFx) in 1 hour
Brian Culver
 
Houston TechFest 2017- Migrate and Upgrade to 2016 Succesfully
Brian Culver
 
Real World Add-in Development for Office365
Brian Culver
 
Building SharePoint 2016 Hybrid the right way
Brian Culver
 
SPSHOU - Upgrading and Migrating to SharePoint 2016 like a Pro
Brian Culver
 
HSPUG Loving one drive for business as a productivity tool
Brian Culver
 
SPT 104 Unlock your big data with analytics and BI on Office 365
Brian Culver
 
Spt 101 Loving Onedrive for business as a productivity tool
Brian Culver
 
SPS Utah 2016 - Unlock your big data with analytics and BI on Office 365
Brian Culver
 
Loving OneDrive for Business as a Productivity Tool
Brian Culver
 
Unlock your Big Data with Analytics and BI on Office 365
Brian Culver
 
SharePoint 2013 Search Driven Sites - SPSHOU
Brian Culver
 
Unlock your Big Data with Analytics and BI on Office 365 - OFF103
Brian Culver
 
Ad

Recently uploaded (20)

PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Biography of Daniel Podor.pdf
Daniel Podor
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 

Build scalable SharePoint 2013 Staged Workflows to run locally and in the Cloud

  • 1. www.expertpointsolutions.com SharePoint 2013 Workflows Build scalable SharePoint 2013 Staged Workflows to run locally and in the Cloud • Brian Culver ● SharePoint Fest Denver ● March 2013
  • 2. About Brian Culver • SharePoint Solutions Architect for Expert Point Solutions • Based in Houston, TX • Author • SharePoint 2010 Unleashed • Upcoming SharePoint 2013 Workflows • Various White Papers • Speaker and Blogger
  • 3. Session Agenda • Why do we use Workflows? • What about Workflow changed in SharePoint 2013 • Why are they better in 2013? • Workflow Manager 1.0 • Building a Workflow in 2013 • Workflows Best Practices
  • 4. Why do we use Workflows? • A workflow is basically a series of tasks that produce an outcome. • In a business scenario, a workflow is a business process. • Workflows can be used to automate, solve and improve processes: • Help people to collaborate on documents • Manage project tasks • Help organizations to adhere to consistent business processes • Improve organizational efficiency and productivity • They enable the people who perform these tasks to concentrate on performing the work rather than managing the workflow or process.
  • 5. What about Workflow changed in SharePoint 2013? • SharePoint 2013 offers two workflow engine flavors: • SharePoint 2010 Workflows (based on .NET3.5) • SharePoint 2013 Workflows (based on .NET4.x) • SharePoint 2010 Workflows run within SharePoint (the internal workflow host) • SharePoint 2013 Workflows run outside of SharePoint in the new Workflow Manager (formerly labeled as Azure Cloud) Farm
  • 6. Why are they better in 2013? • Several improvements in several areas: • Workflow Engine • For SharePoint 2013 Workflows – taken out of SharePoint • Uses Workflow Framework in .NET 4.0 which is much more robust • Can be extended and enhanced more easily • Much more scalable • SharePoint Designer 2013 • Leverages Visio 2013 to provide a better design experience for users and developers. • Business user builds the Workflow in Visio 2013 with SharePoint 2013 Workflow Shapes. • Designer/Developer can import into SharePoint Designer 2013 and/or Visual Studio 2012. • Export to Visio 2013 files preserves workflow properties and details which makes it much more portable between sites and environments.
  • 7. Why are they better in 2013? New Workflow Actions, Components and Conditions
  • 8. Why are they better in 2013? Stage Shapes • A stage is a container which can contain any number of shapes and actions, such as sending an email and logging to the workflow history. A stage must have only one path in and one path out.
  • 9. Why are they better in 2013? • The following rules apply to stages: • A workflow must have at least one stage. A stage, by default, has a Start, Enter and Exit shape SharePoint 2013 Workflow template. • An explicit Start shape is required outside of the stage for the entire diagram. An explicit Terminate shape outside of the stage is not required. • Stage containers cannot be nested. Use other containers within a stage to nest, such as a Step container. • Stop Workflow shapes may exist within a stage. • At the top level, the workflow can contain only stages, conditional shapes, and Start and Terminate terminators. All other shapes must be contained within a stage.
  • 10. Why are they better in 2013? Loop shapes • Loops are a series of connected shapes that will execute as a single unit within a loop container. Like stages, loops are a container shape with an Enter and Exit shape. A loop shape also requires that an Enter and Exit shape be added to the edges of the container to define the paths in and out of the loop. Workflows in SharePoint Server 2013 support two types of loops: loop n times and loop with condition.
  • 11. Why are they better in 2013? • The following rules apply to loops: • Loops must be within a stage. • Steps may be within a loop. • Loops may have only one entry and one exit point.
  • 12. Why are they better in 2013? Step shapes • Steps represent a group of sequential actions to be performed as a single unit.
  • 13. Why are they better in 2013? • The following rules apply to steps: • Steps must be within a stage. • Steps may be within a loop. • Steps may have only one entry and one exit point. • Steps can contain steps. To learn more about the workflow Shapes available in the SharePoint Designer 2013, go to: http://msdn.microsoft.com/en-us/library/jj164055.aspx
  • 14. Why are they better in 2013? • Designer Improvements (with Visio 2013 only) • Text-Based Designer • Visual Designer
  • 15. Demo Visual Designer vs Text-Based Designer
  • 16. Why are they better in 2013? • So the bad news? There is no bad news. There is only news. • SharePoint 2013 does not support all the actions SharePoint 2010 did. • Why? • WorkAround: • Invoke a SharePoint 2010 Workflows via the SharePoint Interop (Start Another Workflow action).
  • 17. Why are they better in 2013? SharePoint 2013 Workflows Architecture • SharePoint 2013 workflows are powered by the .NET 4.x workflow infrastructure or Windows Workflow Foundation 4 (WF4). • WF4 was substantially redesigned from prior versions in that it is built on the messaging functionality provided by the Windows Communication Foundation (WCF). • In WF4 workflows, each business process step is represented by a workflow "activity". Thus, workflow activities represent the underlying managed objects whose methods drive workflow behaviors.
  • 18. Why are they better in 2013? SharePoint 2013 Workflows Architecture
  • 19. Why are they better in 2013? SharePoint 2013 Workflows Architecture • In SharePoint Designer, workflow actions are the user-friendly representations of the underlying activities from WF4. • As the workflow executes, each workflow action interacts with the workflow execution engine which in turn acts on the corresponding activities. • The workflow activities are implemented declaratively by using XAML. • Workflow activities are invoked by using loosely coupled web services that use messaging APIs (Windows Communication Foundation or WCF) to communicate with SharePoint Server 2013.
  • 20. Why are they better in 2013? SharePoint 2013 Workflows Architecture • In SharePoint Server 2013, the Workflow Manager Client 1.0 hosts the WF4 engine and WCF web services. • Together, the Workflow Manager Client 1.0, SharePoint 2013, and SharePoint Designer 2013 each provide the functionality that makes up the SharePoint 2013 Workflow Architecture. • The Workflow Manager Client 1.0 provides the management of workflow definitions and hosts the execution processes for each workflow instance. • The SharePoint 2013 platform provides the framework for building SharePoint workflows and storing the SharePoint workflows.
  • 22. Workflow Manager 1.0 Installing the Workflow Manager 1.0 • Download “Workflow Manager 1.0” • http://www.microsoft.com/en-us/download/details.aspx?id=35375 • Install • Prerequisites: http://technet.microsoft.com/en-us/library/jj193451.aspx • WorkflowManager.exe in the Application Servers or Workflow Farm Servers. • For SharePoint 2013, WorkflowClient.exe in the Web Front Ends. • Run the “Workflow Manager Configuration” • “Configure Workflow Manager with Custom Settings” • Note: Do not pick “Recommended” option • For more information: http://technet.microsoft.com/en- us/library/jj658588.aspx
  • 23. Workflow Forms The New Story • Is InfoPath 2013 going away? • .NET 4 Workflows and Forms • Generates .ASPX pages • Can work with InfoPath 2013 as well • InfoPath 2013 does have new improvements. • Web service, WCF, REST, JSON
  • 24. Workflow Forms The New Story • New features in InfoPath 2013 • The development experience has been drastically improved to work with Visual Studio 2012 • InfoPath can now be deployed as a sandbox solution • The publishing process has been simplified • SharePoint List forms have been enhanced • An InfoPath form Web part has been added • The InfoPath Form Service provides richer Web forms • The InfoPath Form Service follows better compliant standards • InfoPath now supports digital signatures
  • 25. Building a Workflow in 2013 Reusable and Global Reusable Workflows • Reusable workflows were introduced in SharePoint Designer 2010 along with site workflows. Reusable workflows are associated with a content type instead of a specific list. • SharePoint provides the ability to reuse content types across multiple sites and lists, and enables associated workflows to execute on any list where the content type has been configured for use. • Reusable workflows are only aware of site columns on the associated content type, and certain core list metadata columns that are shared across all lists such as “Created” and “Created By”. • Global Reusable workflows are available for use anywhere within a Site Collection, but the workflow and associated content type must be created in the top-level site of a site collection. • One of the most powerful features of the reusable workflow is the ability to export for use in other site collections, web applications and SharePoint farms. • SharePoint Designer automatically packages the workflow and dependencies including forms as a solution package (.WSP) that can be deployed as a sandbox solution, making it possible to also deploy them to hosted SharePoint environments such as Office 365.
  • 26. Building a Workflow in 2013 Site Workflows • Site workflows were new in SharePoint 2010. Site workflows are published to a site rather than a content type or list. Since they are not associated with a specific list or content type, they are not associated with any specific list item (or within the workflow context, the current item). Since a site workflow does not have the specific list item associated with the workflow context, some workflow actions are not available, such as workflow actions triggered when the current list item changes. • Site workflows also do not have events in SharePoint that trigger them. Therefore, site workflows have to be started manually either directly by user or programmatically. • Site workflows are essentially best designed to perform administrative functions on the sites upon which they execute. • Site workflows greatly benefited from custom workflow actions which can expand the capabilities far beyond what is provided out of the box.
  • 27. Building a Workflow in 2013 List Workflows • List workflows have been supported since SharePoint 2007 in SharePoint Designer. A list workflow is designed and published directly to a specific list instance. • List workflows do offer a key feature not found in site workflows or reusable workflows, the ability to access list columns (columns created directly on the list). • A very annoying flaw in list workflows is their affinity to the list where they were published. • Cannot be moved or reused on another list or another site. • List workflows have a place where a small and specific process is required. • They are not good choices for complex workflows or workflows that may need to be used elsewhere, such as another site or list.
  • 28. Building a Workflow in 2013 • Lets build a simple vacation request workflow
  • 29. Demo Building a workflow in SharePoint 2013
  • 30. Workflows Best Practices • Document the High-Level workflow • Then break it up into smaller units • Plan before you build • Most workflows do not look the same after a couple iterations • Put in the time to carefully understand the workflow and identify issues • Create Reusable workflows • Portable and reusable • Create smaller, simpler workflows (when possible) • Larger workflows are harder to reconfigure • Larger workflows are harder to fix and diagnose • Larger workflows increase complexity of logic
  • 31. Questions ? ? ? ?
  • 32. Constructive Feedback Is Appreciated Great information, but would like to have learned more Brian – Your about [Insert Topic] presentation was … Thanks! Good Demos!
  • 33. Brian Culver, MCM Twitter: @spbrianculver E-mail: [email protected] Thank you! Blog: http://blog.expertpointsolutions.com/