5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

41
Title Serge Luca @sergeluca SharePoint MVP Brussels Overview of the SharePoint 2013 workflow platform

Upload: swiss-sharepoint-club

Post on 15-Jun-2015

72 views

Category:

Technology


0 download

DESCRIPTION

MVP Track4: Aperçu de la plate-forme de workflows de SharePoint 2013, Serge Luca, ShareQL.com (MVP SharePoint Belgique)

TRANSCRIPT

Page 1: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Title

Serge Luca@sergelucaSharePoint MVPBrussels

Overview of the SharePoint 2013 workflow platform

Page 2: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Serge Luca

Brussels

@sergeluca

Freelance, author, speaker

SharePoint MVP since 2007

With another (SQL Server) MVP : www.shareql.com

Works with SharePoint since v1 in 2002

Author of Workflow certification exam

About Me

Page 3: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Agenda

Page 4: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Agenda

Introduction

Workflow Architecture

Creating workflows with SharePoint Designer 2013

Creating workflows with Visual Studio

Conclusions

Q&A

Page 5: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Introduction

• SP 2013 improvements for developers

Access servicesWorkflow

SharePoint client object model (CSOM, REST)

Office and SharePoint Store

Apps et cloud app model

Search Workflows

Page 6: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Comparing 2010 and 2013 Workflows

SharePoint 2010 SharePoint 2013

Legacy (backward comp, i.e upgrade)

Future

Coupled to SP servers Decoupled (other consuming platforms)

In process Out process, on premise or cloud (Azure if O365)

Declarative or custom code

Declarative

SP Foundation and SP server

SP server

Content types No*

No Apps App friendly

.Net framework used by SP (.Net 3.51)

.Net framework xxx (.Net 4.5 today, xxx tomorrow)

Page 7: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

• Like in SharePoint 2010: Lists workflows

• Collect Feedback*• Collect Signatures*• Approval*• Disposition Approval*• Tree State*

Sites workflows

History List Tasks List Association forms Initiation forms Tasks forms

7* out of the box

Page 8: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

SP2013 Workflows Architecture

Page 9: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

2 workflow platforms

Page 10: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

2 workflow platforms

SP 2013 farm Workflow FarmWorkflow Farm

SharePoint 2010 workflows

Windows Server

SQL Server

Non supporté en SharePoint Foundation

SharePoint 2013 workflows

Windows Server

SQL Server

Page 11: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Workflow Farm = 1 or 3 machines (not 2, not 4,…)

• Collocated = Workflow Manager on (1 or 3 ) SP machines• Federated = Workflow Manager farm serving multiple

SharePoint Farms• Distributed = Multiple Workflow Manager farms serving

multiple SharePoint tenants and potentially SharePoint Farms

Topologies

Page 12: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Topologies: co-located (from Harbar & wilén)

Running Workflow Manager on adequately resourced Web Servers in the SharePoint farmCarefully factor this into your overall farm topology design

load balancer

Workflow Manager

Workflow Manager

Workflow Manager

Page 13: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Topologies: Federated (from Harbar & wilén)

Workflow Manager farm serving multiple SharePoint Farms

load balancer

Workflow Manager

Scope 1(SP Farm 1)

Scope 2(SP Farm 2)

Page 14: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Topologies: ‘Distributed’ (from Harbar & wilén)

Multiple Workflow Manager farms serving multiple SharePoint tenantsAnd potentially SharePoint Farms

load balancer

Workflow Manager

Scope 1(SP Tenant1)

Scope 2(SP Tenant 2)

Workflow Manager

Scope 1(SP Tenant3)

Scope 2(SP Tenant 4)

SP Tenant 1

SP Tenant 2

SP Tenant 3

SP Tenant 4

Page 15: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

SharePoint 2013 and Workflow Service

Sharing

ContentEvents People

SharePoint2010 WF

_API (REST OM)

Workflow Services Manager

Service Bus

Instances Interop

Deployment

Messaging

WF Service Application Proxy

Workflow Manager

OAuth

Access Control

Work

flow

Clie

nt

Page 16: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

SharePoint Designer 2013 and workflows

Page 17: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Which Microsoft Workflow tool ?

SharePoint Designer 2013

Visual Studio 2013

Power Users, SP devs SP devs

Can use Visio No

Cannot debug Can debug, including SP online

No ALM support Full ALM support

Cannot be part of Apps Can be part of Apps

18

Page 18: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

What’s new in SPD workflows

Complex variable ‘Dictionary’

Full integration of Project server workflows

Support SP2010 workflows + interoperability

Call web services (HTTP/REST)

Improved parallel blocks

Portability WSP and VSDX (Visio) files

LoopsText mode or graphical mode editor

App level operation with App Step

Stages Actions “Assign A Task” & “Start a Task Process”

copy & paste

Page 19: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Demo 1

Text mode or graphical mode editor

App level operation with App Step

Stages Actions “Assign A Task” & “Start a Task Process”

copy & paste

Page 20: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Why are Web Services super important in your workflow strategy ?

21

• Reason 1. No custom code in the workflow Manager platform->no advanced customizations ->Wrap custom code in web services and invoke the web service from the workflow (can access SharePoint with the SP REST api)

• Reason 2. If you move to a tool like Nintex or K2,…your work is reusable

Page 21: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

• http://api.worldweatheronline.com/free/v1/weather.ashx?q=geneva&format=json&num_of_days=2&key=txq75v64h4szxyqft7e9kcyx

22

Page 22: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

23

Page 23: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Demo 2 : calling REST/JSON web services

Complex variable ‘Dictionary’

Call web services (HTTP/REST)

Page 24: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

https://contoso.com/_api/web/Lists/GetbyTitle('Announcements')/items

25

•How can I access SharePoint list items by using the SP REST API ?

Page 25: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Demo 3 : calling the SharePoint REST API (GET)

Complex variable ‘Dictionary’

Call web services (HTTP/REST)

Page 26: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

• Create a SharePoint list with the SP Rest api

27

Page 27: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Demo 4 : calling the SharePoint REST API (POST)

Complex variable ‘Dictionary’

Call web services (HTTP/REST)

Page 28: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Visual Studio and workflows

Page 29: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Do your remember ?

SharePoint Designer 2013

Visual Studio 2013

Can use Visio No

Power Users, SP devs SP devs

Cannot debug Can debug, including online

No ALM support Full ALM support

Cannot be part of Apps Can be part of Apps

30

Page 30: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

• Main benefit : great integration with the SharePoint App Model

• A VS workflow can be deployed as an App Each app is isolated in an individual child site (“App Web”)

• VS workflows logically “run” in the App Web: Site workflows are associated with the App Web Site List workflows are associated with lists in the App Web Site Use the AppWeb task lists Use the AppWeb history list Actually the workflows physically run in Workflow Manager

31

Page 31: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

•Workflows in Apps : 2 main options:

Option 1.The workflow is hidden in the App

Option 2.The workflow is visible in SharePoint (new since June 2014) = “Integrated workflow app” (!only O365)

32

Page 32: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

The workflow is hidden in the App

33

Page 33: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Demo 5 : (App) Workflow hidden in the App

Page 34: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Integrated workflow apps

Page 35: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

• How to make an Integrated workflow app ?

36

Page 36: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Demo 6 : (App)Workflow visible in SharePoint

Page 37: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Conclusions

Page 38: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

• Workflow Manager nice, but no custom task forms/Visio• Third party tools still in the SP 2010 “workflow

platform”• Don’t throw away the old workflow platform

• SharePoint Designer workflows can access Web Services & the SP api (REST)• Decouple your workflows !• Read (GET) easier than Modify (POST)

• Devs should always create VS workflows (Apps)

• Task delegation is missing…

• Apps are the future…

• A real forms engine is missing !

Conclusions

Page 39: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Q&A

Page 40: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

• Contoso App catalog

41

Page 41: 5.4swiss_sharepoint_club_mvp_track4_workflows-sharepoint_2013_serge_luca_shareql.com

Title

Serge Luca@sergelucaSharePoint MVPBrussels