sharepoint server 2013 workflows

19
SHAREPOINT AND PROJECT CONFERENCE ADRIATICS ZAGREB, 11/28/2012 SharePoint Server 2013 Workflows SAŠA TOMIČIĆ, EKOBIT IVAN POPEK, EKOBIT

Upload: sharepoint-amp-project-conference-adriatics

Post on 18-Nov-2014

6.480 views

Category:

Technology


3 download

DESCRIPTION

Speakers: Saša Tomičić, Ivan Popek; This session will introduce an interesting set of new features and capabilities of the SharePoint Server 2013 workflow engine powered by .NET Framework 4.5. We will show which platforms you can use to develop your workflows and show the SharePoint Designer workflow enhancements. Beside that you will see new Windows Azure Workflow capabilities and, last but not least, a few Windows PowerShell cmdlets that manage workflow.

TRANSCRIPT

Page 1: SharePoint Server 2013 Workflows

SHAREPOINT AND PROJECT CONFERENCE ADRIATICS ZAGREB, 11/28/2012

SharePoint Server 2013 WorkflowsSAŠA TOMIČIĆ, EKOBITIVAN POPEK, EKOBIT

Page 2: SharePoint Server 2013 Workflows

sponsors

Page 3: SharePoint Server 2013 Workflows

AGENDA• What’s new in SharePoint 2013 workflow• Architecture• Workflow development with Visual Studio 2012• SharePoint Designer 2013 workflows• Demo: developing SharePoint Designer 2013 workflow

Page 4: SharePoint Server 2013 Workflows

KEY INVESTMENT AREAS

AccessWorkflow

SharePoint Client Side Object Model

Office and SharePoint Store

Apps and the Cloud App Model

SharePoint Server Side Object Model

Workflow

Page 5: SharePoint Server 2013 Workflows

WHAT’S NEW IN SHAREPOINT 2013 WORKFLOW

Cloud-ready workflow that fully integrates with the new SharePoint app model

Do more with SharePoint Designer and declarative workflow

Run on newest workflow hosting technology for better scale and management of workflow processing

UnboundedConnectedExpressive

Page 6: SharePoint Server 2013 Workflows

ARCHITECTURE

Sharing

ContentEvents People

Vis

ual S

tud

io

Sh

are

Poin

t D

esig

ner

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

Clien

t

Page 7: SharePoint Server 2013 Workflows

APP HOSTING

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”

SharePoint

Web

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

Page 8: SharePoint Server 2013 Workflows

WORKFLOW DEVELOPMENT WITH VS 2012

Workflow object model

Workflowauthoring

Workflow within apps

Page 9: SharePoint Server 2013 Workflows

WORKFLOWS WITHIN APPSSharePoint-hosted apps

Low barrier to entryInherent multi-tenancy and isolationWorkflow is the middle tier

Cloud-hosted apps

Full power of the web – choose your infrastructureWorkflow is part of the middle tierFor business process management

SharePoint Web

App Web

SharePoint Web

App Web

Azure

Your Hosted Site

SharePoint Web

App Web

Lists and other data

Lists and other data

HTML / JS UI

Workflow

Your Hosted App Logic

Other Resources e.g. CRM

Page 10: SharePoint Server 2013 Workflows

• Declarative Workflows• Better tooling• Directly leverage Workflow Foundation 4.5• Custom Activities

WORKFLOW AUTHORING

Page 11: SharePoint Server 2013 Workflows

WORKFLOW OBJECT MODEL

Workflow Services Manager

Deployment

Service

InstanceService

Subscription

Service

MessagingService

InteropService

Page 12: SharePoint Server 2013 Workflows

function initWorkflowDeploymentService () { _wds = _wsm.getWorkflowDeploymentService(); _hostCtx.load(_wds); _hostCtx.executeQueryAsync( validateWorkflowDefinition, function (sender, arg) { handle(arg.get_message(), arg.get_stackTrace()); } );}

function validateWorkflowDefinition() { _result = _wds.validateActivity(textArea.value); _hostCtx.executeQueryAsync( function () {}, function (sender, arg) { handle(arg.get_message(), arg.get_stackTrace()); } );}

SAMPLE CODE

function initWorkflowServiceManager() { _wsm = SP.WorkflowServices.WorkflowServiceManager.newObject(_hostCtx, _hostWeb); _hostCtx.load(_wsm); _hostCtx.executeQueryAsync(initWorkflowDeploymentService);}

Page 13: SharePoint Server 2013 Workflows

WHAT’S NEW IN SHAREPOINT DESIGNER 2013

Workflow Infrastructure

Workflow Designers Workflow Actions

Page 14: SharePoint Server 2013 Workflows

BIG NEW FEATURES

Stages!

Do “App-Level” operations with App Step

Rapid design with the Visual and Text-Based Designers

Copy & Paste in the Text-Based Designer

New “Assign A Task” & “Start a Task Process” actions

Enhanced parallel blocks

Looping! Enhanced portability & packaging through WSP and VSDX files

Support classic 2010 workflow type and interoperability

Complex data types with ‘Dictionary’ variables

Full integration with Project Server workflows

Leverage web services(HTTP/REST)

Page 15: SharePoint Server 2013 Workflows

BIG NEW FEATURES

New “Assign A Task” & “Start a Task Process” actions

Enhanced portability & packaging through WSP and VSDX files

Support classic 2010 workflow type and interoperability

Do “App-Level” operations with App Step

Enhanced parallel blocks

Full integration with Project Server workflows

NEARLY 50 NEW/IMPROVED FEATURES AND ACTIONS THIS RELEASE!!!!

Page 16: SharePoint Server 2013 Workflows

SHAREPOINT DESIGNER WORKFLOW

Page 17: SharePoint Server 2013 Workflows

WORKFLOW MANAGER INSTALLING AND PAIRING

Available via Web Platform Installer or Download CenterWorkflow Manager 1.0Workflow Manager Client 1.0

Pairing PowerShell CommandFarm ScopedRequires Workflow Manager Client on SharePoint machineRegister-SPWorkflowService –SPSite “https://{rootUrl}” –WorkflowHostUri “https://{WfsvcVipDnName}:12290”

Strictly for developer and trial environments, it is possible to configure without SSL in SharePoint (not default)

Switch: -AllowOAuthHttp

Workflow Manager HTTP port: 12291

Note:

OAuth requires SSL in production.

Set Workflow Service Uri to DNS hostname of Virtual IP.

Page 18: SharePoint Server 2013 Workflows

questions?http://www.SharedPointOfView.com

http://blog.JohnsWorkshop.net

@Sasa_Tomicic // @IvanPopek

Page 19: SharePoint Server 2013 Workflows

thank you.

SHAREPOINT AND PROJECT CONFERENCE ADRIATICS ZAGREB, 11/28/2012