Share Point 2010 Workflow

Preview:

DESCRIPTION

 

Citation preview

SharePoint Workflow

Outline

What’s New in SharePoint 2010 WorkflowDesigning Workflows with SPDDeveloping Workflows with VS 2010

Process Automation in SharePoint

SharePoint 2010

Event MessagingCollaboratio

n

LOB Apps

Workflow

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

"What's New" for SharePoint 2010

For the end-userNew targets to run a workflowVisio visualization

For the power-userImproved nested logicNew Task Process designerCustomizable OOB workflows

For the developerVisual Studio 2010 SharePoint toolsWorkflow EventsPluggable External Data Exchange Services

SharePoint 2010 Workflow Targets

Site List Item

Creating Workflows in Visio

Visio has SharePoint Workflow template

Allows you to create workflow design in VisioWorkflow can be exported to SharePoint Designer

Creating Workflows

demo

Outline

What’s New in SharePoint 2010 WorkflowDesigning Workflows with SPDDeveloping Workflows with VS 2010

SharePoint Designer Improvements

For DesignNew declarative workflow designerAdvanced task process designerInfoPath FormsVisio workflow designer

For DevelopmentReusable workflowsVisio visualizationsExport as WSP

SharePoint Designer Workflows

Improved declarative workflow designer

Nested logic in SharePoint Designer

The Task Process Designer

Prototype, Design and Develop

SharePoint 2010 offers new development process

Envision workflows in VisioImport into SharePoint Designer

Parameterize

Export to Visual Studio 2010Add code

Visio SPD VS10

SharePoint Designer Workflows

demo

Outline

What’s New in SharePoint 2010 WorkflowDesigning Workflows with SPDDeveloping Workflows with VS 2010

What’s new in Visual Studio 2010

Site WorkflowsASP.NET Form TemplatesNew eventsExternal Data Exchange

Developing Site Level Workflows

Site Workflows List / Item properties are nullNo auto-start

Creating ASP.NET Workflow Forms

Generates the required codeUpdates the elements.xml file

Available:AssociationInitiation

Workflow Events

Events fired during workflow lifetimeStarted, Completed…

ScenariosCall sub-workflows and wait for completionProvide more elaborate error handling

Familiar model for developers

SPWorklowEventReceiver

Base class for handling workflow events

Register on site / list / content type

public class MyWorkflowEventReceiver : SPWorkflowEventReceiver{ public override void WorkflowStarting( SPWorkflowEventProperties properties) { // your code here base.WorkflowStarting(properties); }}

External Data in SharePoint 2007

SharePoint Data

External Data

Correlated Events

Pluggable EDE Services

Interact with LOB systems by using custom External Data Exchange services

Requires low-level understanding of WF layer

You can write your own events

No partial trust

Call External System

Wait For Notification

Workflow Completed

WorkflowStarted

Flow of Events

Workflow

EDE Service

External System

Subscriptions

WorkflowRuntime

Call External Method

Raise Event

WCF Service

External System

Or

Developing Workflows with Visual Studio 2010

demo

Summary

What’s New in SharePoint 2010 WorkflowDesigning Workflows with SPDDeveloping Workflows with VS 2010