workflows in sharepoint 2013. about me we love workflows

43
Workflows in SharePoint 2013 Peter Plessers

Upload: paulina-campbell

Post on 18-Dec-2015

256 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Workflows in SharePoint 2013. About me We love workflows

Workflows in SharePoint 2013

Peter Plessers

Page 2: Workflows in SharePoint 2013. About me We love workflows
Page 3: Workflows in SharePoint 2013. About me We love workflows

About me• Peter Plessers• SharePoint Architect• Spikes

[email protected]• @SpikesNV

www.spikestogether.com

Page 4: Workflows in SharePoint 2013. About me We love workflows

We love workflows

Page 5: Workflows in SharePoint 2013. About me We love workflows

What has changed?

Page 6: Workflows in SharePoint 2013. About me We love workflows

Agenda• Workflow Architecture

• Workflow Features

• Workflow Development

• Workflows & Apps

Page 7: Workflows in SharePoint 2013. About me We love workflows

Workflow Architecture

Page 8: Workflows in SharePoint 2013. About me We love workflows

Architecture SP2010

SharePoint 2010

Tools

Visual Studio 2010 SP Designer

SharePoint 2010 Workflow

Page 9: Workflows in SharePoint 2013. About me We love workflows

Architecture SP2010

Declarative

.rules

.xoml

.WF 3.5

Code

.dll

.WF 3.5

Page 10: Workflows in SharePoint 2013. About me We love workflows

Architecture SP2013

SharePoint 2013

Tools

Workflow Manager

Visual Studio 2012 SP Designer

Solutions

Contents

Apps Events

SharePoint 2010

Workflow

Workflow Services Manager

DeploymentSubscriptio

n

Instances Interop

Workflow Service Application proxy

Workflow

Service Bus

ACS

Page 11: Workflows in SharePoint 2013. About me We love workflows

Architecture SP2013

Page 12: Workflows in SharePoint 2013. About me We love workflows

Architecture SP2013

Declarative

.xaml

.WF 4.5

Page 13: Workflows in SharePoint 2013. About me We love workflows

Architecture SP2013

Benefits• Move load from SharePoint to workflow farm• Fully declarative workflows• Scalability• Reliability• SharePoint Online (SP Designer + VS)

Page 14: Workflows in SharePoint 2013. About me We love workflows

DEMO

Page 15: Workflows in SharePoint 2013. About me We love workflows

Workflow Manager Installation

Page 16: Workflows in SharePoint 2013. About me We love workflows

Register Workflow Service

Register-SPWorkflowService –SPSite “http://portal.dev.com/” –WorkflowHostUri “http://localhost:12291″ –AllowOAuthHttp

Page 17: Workflows in SharePoint 2013. About me We love workflows

Workflow Features

Page 18: Workflows in SharePoint 2013. About me We love workflows

New Features

Page 19: Workflows in SharePoint 2013. About me We love workflows

New Workflow Activities

Building Blocks• Stage• Loop• App Step• Parallel Block

Page 20: Workflows in SharePoint 2013. About me We love workflows

New Workflow Activities

Workflow Activities• Call Web Service (HttpSend)• Go to stage

Page 21: Workflows in SharePoint 2013. About me We love workflows

New Workflow Activities

Dynamic Value• Nested sets of key-value pairs• Used in combination with ‘HttpSend’

activity• Activities to manipulate DynamicValues

Page 22: Workflows in SharePoint 2013. About me We love workflows

SharePoint Designer 2013

SharePoint Designer• Visual Designer (Visio Add-in)• Copy paste of configurations• Package list / site workflows

Page 23: Workflows in SharePoint 2013. About me We love workflows

DEMO

Page 24: Workflows in SharePoint 2013. About me We love workflows

Removed Workflow Features

No InfoPath forms• Auto-generated ASPX forms

• Task Forms• Initiation Forms• Association Forms

Page 25: Workflows in SharePoint 2013. About me We love workflows

Removed Workflow Features

Missing Workflow Activities• Document Set Activities• Permission Activities• Declare Record• Lookup manager of user

Page 26: Workflows in SharePoint 2013. About me We love workflows

Removed Workflow Features

No Visio Visualization of WF Status• Only available for SP2010 workflows

Page 27: Workflows in SharePoint 2013. About me We love workflows

Removed Workflow Features

Workflow Associations• No longer possible to associate workflows with content types

Built-in workflows• No 2013 workflow version of approval workflow, review workflow, …

Page 28: Workflows in SharePoint 2013. About me We love workflows

Development

Page 29: Workflows in SharePoint 2013. About me We love workflows

Custom Development

• Custom WF activity• Custom Task Form

Page 30: Workflows in SharePoint 2013. About me We love workflows

Custom WF Activity

Custom WF activity• Lookup Assistant activity

Page 31: Workflows in SharePoint 2013. About me We love workflows

DEMO

Page 32: Workflows in SharePoint 2013. About me We love workflows

Custom WF Activity

Problems you might encounter• SharePoint ignores new version of WF

activityRestart VS + check DB

• SharePoint designer breaksClear SP Designer cache

Page 33: Workflows in SharePoint 2013. About me We love workflows

Custom Task Form

Custom task form• Custom application page

Page 34: Workflows in SharePoint 2013. About me We love workflows

DEMO

Page 35: Workflows in SharePoint 2013. About me We love workflows

Workflow & Apps

Page 36: Workflows in SharePoint 2013. About me We love workflows

SharePoint Apps

App Web (from WSP)

HostwebSharePoint-hosted

AppReuse (lists, out-of-box web

parts)Client side technologies and

declarative workflows

Provider-hosted App

“Bring your own server hosting infrastructure”

Get remote events from SharePoint Use CSOM/REST + OAuth

Cloud-hosted apps

Your Hosted

Site

Auto-hosted AppWindows Azure + SQL

Azure provisioned automatically as apps

are installed

Azure SharePoint Web

SharePoint

Web

Page 37: Workflows in SharePoint 2013. About me We love workflows

SharePoint Apps

SharePoint Web

App Web

SharePoint Web

App Web

Azure

Your Hosted Site

SharePointhosted

Cloudhosted

Workflows are deployed to the App Web

Page 38: Workflows in SharePoint 2013. About me We love workflows

How to deploy WFs to host web?Deploy workflows• Deploy workflow to app web• On App Installed Event• Use CSOM to publish your workflow

from app web to host web

Page 39: Workflows in SharePoint 2013. About me We love workflows

From App Web to Host Web• Read workflow definition from app web

WorkflowDeploymentService.GetDefinition(id)

• Publish workflow definition to host web WorkflowDeploymentService.PublishDefinition(def)

• Create task + workflow history list

• Publish subscription WorkflowSubscriptionService.PublishSubscription(s)

Page 40: Workflows in SharePoint 2013. About me We love workflows

Questions?

Page 41: Workflows in SharePoint 2013. About me We love workflows

Contact Info• Peter Plessers

[email protected]• @SpikesNV

www.spikestogether.com

Page 42: Workflows in SharePoint 2013. About me We love workflows

THANK YOU

Page 43: Workflows in SharePoint 2013. About me We love workflows