building workflows for sharepoint 2010 with sharepoint designer and visio

27

Upload: elaine-van-bergen

Post on 06-May-2015

6.707 views

Category:

Technology


1 download

DESCRIPTION

Workflow in SharePoint 2010 has been revamped with a new designer for building both reusable workflows and list-based workflows. Come and learn about the new possibilities for automating business processes in SharePoint 2010 with easy-to-use, no-code tools. This talk will describe the new workflow features and demonstrate how SharePoint 2010 can be used to create rich end-to-end workflows, cheaply and easily.

TRANSCRIPT

Page 1: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio
Page 2: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

BUILDING WORKFLOWS FOR SHAREPOINT 2010 WITH

SHAREPOINT DESIGNER AND VISIO

Eben Illingworth and Elaine van Bergen

Page 3: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

• Collaboration happens in SharePoint• People at work

• Data they make and use

• Workflows to manage it

• Two flavours• System – move data in

and out of SharePoint

• Human – support peoplewith long-running processes

Page 4: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

HUMAN WORKFLOW EXAMPLES

• Managing how people work• Document approval & feedback

• Collaborative reviews & discussions

• Gathering signatures

• Business logic in action• Rules for SharePoint content

• Applied automatically or on demand

• “Glue” used to build common business apps

Page 5: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

HOW IT WORKS: THE “OFFICETASK”

Workflow activity Approval activity(OfficeTask) Workflow activity

Page 6: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

HOW IT WORKS: THE “OFFICETASK”

Workflow activity Approval activity(OfficeTask) Workflow activity

Approval start behavior Approval in progress Approval end

behavior

Page 7: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

HOW IT WORKS: THE “OFFICETASK”

Workflow activity Approval activity(OfficeTask) Workflow activity

Approval start behavior Approval in progress Approval end

behavior

Task start behavior Task in progress Task end behavior

Page 8: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

HOW IT WORKS: THE “OFFICETASK”

Workflow activity Workflow activity

Approval start behavior Approval in progress Approval end

behavior

Task start behavior Task in progress Task end behavior

?

Page 9: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

EXAMPLE: EXPENSE REPORTING

Workflow activity Workflow activity

Check metadata on uploaded report

Approval in progressSet status to either

Approved or Rejected, and notify submitter

Task start behaviorSend daily

reminders when due date passes

Task end behavior

?

Page 10: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

A Gartner 2008 survey showed that:

• 67% of companies that are "doing BPM" changed some of their business processes at least twice a year.

•18% needed to make changes on a monthly basis

•10% on a weekly basis and

•4% on a daily basis

Page 11: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

WINDOWS WORKFLOW FOUNDATION• Workflow engine shipped as part of the .NET 3.0 Framework

• Model workflows as state machines or sequential steps

• Long-running and stateful

Page 12: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

WorkflowRuntime

Workflow

WINDOWS WORKFLOW FOUNDATIONWORKFLOW SERVICES

Scheduler Persistence Tracking Batching

SharePointCRMLOB

Workflow Workflow

Page 13: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

DECLARATIVE VS. CODE-BASED WORKFLOWS

Code-Based Workflows

• Developed with .NET code

• Compiled to template assemblies

• Packaged as features

• Deployed via WSP packages

• Added to feature galleries

• Activated per-site collection

• Versioned like code

• Can do all of the work in internal code and/or call activities

Declarative Workflows

• Developed as XOML (eXtensible Orchestration Markup Language)

• JIT compiled and run by a template assembly provided by SharePoint

• Published to containers (lists, libraries, etc.)

• Versionable like documents (with help)

• Connect activities together, but the activities do the work

Page 14: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

WORKFLOW SOLUTION SPECTRUM

Incr

easin

g Fu

nctio

nality

Browser Visual StudioSharePoint Designer

Page 15: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

PROTOTYPE, DESIGN AND DEVELOP• SharePoint 2010 offers new development process

• Envision workflows in Visio

• Import into SharePoint Designer

• Parameterize

• Export to Visual Studio 2010

• Add code

Page 16: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

VISIO TO DESIGNER

Page 17: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

DECLARATIVE WORKFLOWS

• Performance improvements*

• InfoPath forms for association, activation, tasks

• Reusable workflows

• Content types

• Association columns

• Promotable to “globally” reusable

• Out-of-box workflows work this way now

• Site workflows*

• Workflows on document sets*

• Impersonation steps*

• Export to Visual Studio

*not just for declarative workflows; also for code-based workflows

Page 18: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

REUSABLE WORKFLOWS

• Not tightly coupled to specific lists

• Associated with lists or content types

• Association columns

• Promotable to “globally” reusable

• Out-of-box workflows work this way now

Page 19: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

SHAREPOINT 2010 WORKFLOW TARGETS

Site List Item

Page 20: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

SITE WORKFLOWS

• Bound to site, not to a list or content type

• Started manually

• Accessible from Site Actions menu• Go to View All Site Content to see them

• Perfect for workflows that:• Work on groups of content

• Work mostly on non-SharePoint content

Page 21: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

CUSTOM ACTIVITIES

• Plug in your own custom activities• Fully trusted deployment model

• Sandboxed code in the user solution gallery

• Build on top of existing activities• OfficeTask exposed in Visual Studio

• Flexibility of custom code, reusable in code-based and declarative workflows alike

Page 22: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

NEW AND IMPROVED OUT-OF-THE-BOX ACTIONS

• User profile lookups

• Document sets

• Declare record

• Set permissions

• Read/write to external lists

• Utility actions

• Task Processes• e.g., Office Task

• Composite activities

• Design dialogs

Page 23: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

TOOL ENHANCEMENTS

• SharePoint Designer 2010• Big design interface improvements

• Full screen, more available context data, import/export, nested logic

• It’s what we’ve been using for all of the demos so far

• Visio 2010• Allow business analysts to design workflows

• Provide graphical workflow status (Visio Services)

Page 24: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

VISUAL STUDIO

Page 25: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

SUMMARY

• SharePoint is a serious workflow platform• The perfect place for human workflow

• The perfect stopover point for longer-running business-to-business and application-to-application processes

• Declarative workflows’ limitations are nearly gone

• Plenty of tool options exist

Page 26: Building Workflows for SharePoint 2010 with SharePoint Designer and Visio

QUESTIONS?