SharePoint Workflow Development Using Visual Studio Brian LaSitis February 27, 2008.

Slides:



Advertisements
Similar presentations
Windows Workflow Foundation By Sam Nasr, MCAD October 23,
Advertisements

Overview and Demonstration of declarative workflows in SharePoint using Microsoft SharePoint Designer 2007 Kevin Hughes MCT, MCITP, MCSA, MCTS, MCP, Network+,
Microsoft Office SharePoint Portal Server 2007 Introduction to InfoPath Forms Services Daryl L. Rudolph.
1. 2 Captaris Workflow Microsoft SharePoint User Group 16 May 2006.
Microsoft SharePoint 2010 technology for Developers
Designing, Deploying and Managing Workflow in SharePoint Sites Steve Heaney Product Development Manager OBS
Randy Williams, MOSS MVP Senior Consultant Synergy Corporate Technologies.
MOSS Workflows Workflow Technologies Overview November 15, 2007 Sogeti USA.
SharePoint 2007: Workflow and Digital Forms Neil Iversen Inetium.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.
Vasily Sokolov, AVIcode Consulting LLC
Mark Rees Microsoft Consulting Services OFC409 Windows Workflow Foundation (WF) Primer Creating WF programs in Visual Studio Creating workflow templates.
InfoPath Foundations Peter Williams, Ibitec AB. Agenda What are Forms? Form Scenarios Fundamentals Enter InfoPath Alternatives Use Forms InfoPath Enterprise.
Microsoft SharePoint 2013 SharePoint 2013 as a Developer Platform
BizTalk Deployment using Visual Studio Release Management
Becky Bertram SharePoint MVP
SharePoint Collaboration Features & Workflow
It’s always better live. MSDN Events Developer Productivity Improvements with Visual Studio 2008 and Office Business Applications.
Using Microsoft SharePoint to Develop Workflow and Business Process Automation Ted Perrotte National Practice Manager, Quilogy, Microsoft Office SharePoint.
Building workflows for Microsoft SharePoint Products and Technologies Mohammed Zayed Information Worker Specialist Mohzd.blogspot.com.
Workflows in SharePoint Brian Russo RJB Technical Consulting July 2009.
Workflow Solutions for Business Users and Knowledge Workers November 30th, 2010 Brendan Giles, PMP, MCP.
Introduction to SharePoint Development with VS2010 Paul Yuknewicz Lead Program Manager
Wrestling with Windows Workflow Foundation Simon Thurman Jeremy Stimson.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
Larry Mead Microsoft Corp. Jon Flanders Session Code: INT203.
Create with SharePoint 2010 Jen Dodd Sr. Solutions Consultant
Creating Business Workflow Using SharePoint Designer 2007 Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server MVP Microsoft SQL Server.
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
Workflow and SharePoint Presented by Ben Geers. Overview What is workflow? Windows Workflow Foundation How does workflow apply to SharePoint? WSS v3 vs.
Microsoft Confidential Office as a Development Platform Tim Heuer
Developing Workflows with SharePoint Designer David Coe Application Development Consultant Microsoft Corporation.
Virtual techdays INDIA │ Nov 2010 Developing Office Biz Application using WPF on Windows 7 Sarang Datye │ Sr. Consultant, Microsoft Sridhar Poduri.
Todd Kitta  Covenant Technology Partners  Professional Windows Workflow Foundation.
WEB 304 An Overview of ASP.NET and Windows Workflow Foundation Kashif Alam Program Manager Developer Division Microsoft Corporation.
Basic Developer Knowledge That Every SharePoint Admin Must Have Randy Williams, MVP MOSS Synergy Corporate Technologies
Name : Ted Pattison Title: Author/Instructor Company: Critical Path Training Session Code: OFC320.
SharePoint Workflows with Visual Studio Stuart Cox RBA Consulting techpunch.wordpress.com.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Workflow Development Overview Architecture Requirements Types of workflows Stages of workflow.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Sites Lists Advanced Site collection administration –Moving sites –Save site as template.
Slide 1.NET Development for Project 2003 Samples from the Project 2003 SDK Jim Corbin Programmer Writer Office Developer Documentation Microsoft Corporation.
James Akrigg Microsoft Ltd Integrating InfoPath Forms Into Workflow Solutions And Business Processes.
Office Business Applications Workshop Defining Business Process and Workflows.
SharePoint Online – Developing Solutions for the Cloud Chris Mayo Microsoft Corporation
Orbit One BVBA Raas van Gaverestraat 83 B-9000 GENT, BELGIUM Website
Microsoft Visual Studio 2005 Tools for the Office System: Building Office Solutions Using Visual Studio 2005 Tools for Office Andrew Coates Developer Evangelist.
SharePoint Workflow Prepared By: Eng. Rasha Farouk.
The 2007 Microsoft Office System Servers Enterprise Content Management, Workflow and Forms Martin Parry Developer and Platform Group, Microsoft Ltd
Workflow in Microsoft Office SharePoint Server Jessica Gruber Consultant Microsoft Corporation.
Integrating with and Extending Visual Studio. Objectives.
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
V7 Foundation Series Vignette Education Services.
Windows Workflow Foundation Guy Burstein Senior Consultant Advantech – Microsoft Division
De Rigueur - Adding Process to Your Business Analytics Environment Diane Hatcher, SAS Institute Inc, Cary, NC Falko Schulz, SAS Institute Australia., Brisbane,
Joy Rathnayake Senior Architect – Virtusa Pvt. Ltd.
Building Enterprise Applications Using Visual Studio®
Introducing the Microsoft® .NET Framework
Business Connectivity Services in SharePoint 2010 and Office 2010
Visual Studio Tools for Office 2005
Microsoft Dynamics.
Module 1: Getting Started
07 | Workflows Chris Johnson | SharePoint Guru
Microsoft SharePoint Conference 2009 Jon Flanders
Visual Studio 2010 SharePoint Development Tools Overview
Microsoft Office SharePoint 2007 Technical Enablement Tour
SharePoint Workflow: Taking the Manual Out of Your Process
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
Presentation transcript:

SharePoint Workflow Development Using Visual Studio Brian LaSitis February 27, 2008

Topics  Why use Visual Studio vs. SP Designer?  Advantages & Disadvantages  Windows WF Overview  General Concepts & Usage Scenarios  Workflow Types  Activity Overview  SharePoint WF Extensions  Custom Workflow Solutions  Demo  Custom SP Designer Actions  Demo

SharePoint Designer - Workflow AdvantagesDisadvantages  Targets the Information Worker  Allows business users to apply simple business logic within a document library or list  Uses a rules-based approach, similar to the Rules Wizard in Outlook  Can be deployed without installing custom code to a server  Default capabilities limited to the actions available out of box  Limited wide-deployment options since each workflow is inherently tied to a specific list/document library  Does not support state-machine workflows  Workflows cannot be modified while they are executing

Visual Studio / Windows WF AdvantagesDisadvantages  Graphical, flow-chart like development tools.  Builds upon WF foundation, and adds SharePoint-specific activities.  Supports custom association, initiation, modification, and task forms.  Allows deployment through use of SharePoint features.  Requires significant knowledge of the.NET development and the WF framework.  Requires custom code to be deployed to the SharePoint server.  Requires the developer to fully understand the underlying business logic of the workflow process.

SharePoint Features Overview  Modular framework for deploying functionality within a specific scope within SharePoint:  Farm  Web Application  Site Collection  Web Site  Stored within 12\TEMPLATE\FEATURES.  Must be installed and activated to be used within their configured scope.  Can be “stapled” to existing site collections, including those provided out-of-the-box.

What is Windows WF?  A pillar within the.NET Framework 3.0 that provides the programming model, engine, and toolset for creating workflows in Windows  Not product specific; leveraged by many products.  In its most basic form, WF is a multithreaded execution engine that can be leveraged by any type of.NET application  Graphical development tools are directly integrated with Visual Studio 2005, through the Windows WF Designer.

WF Usage Scenarios  Windows WF can be leveraged for any of the following:  Workflow within LOB applications  Windows Forms / ASP.NET UI Page Flow  Document-centric workflow  Human workflow  Composite workflow for SOA  Business rule-driven workflow  Workflow for systems management

What products use Windows WF?  Windows SharePoint Services 3.0  Microsoft Office SharePoint Server 2007  Microsoft BizTalk Server 2006 R2  Microsoft Dynamics CRM 4.0  Microsoft Identity Integration Server

A WF Workflow Definition  Can be one of three types: sequential, state-machine, or rules-based.  Composed of a set of activities, that are interconnected to form a business process. SequentialState-MachineRules-Based Ideal for business processes Ideal for processes with external interaction Ideal for complex decision scenarios Typically execute autonomously without external interaction Typically are reliant upon outside control to complete execution Typically use large, chained rule-trees to drive execution Execution controlled by the workflow itself Events control the workflow execution Rules & policies control workflow execution Root Activity: SequentialWorkflow Root Activity: StateMachineWorkflow Either state-machine or sequential can be used.

Common WF Activities Activity NameDescription Sequence ActivityComposite activity that executes the set of activities within it in a sequential fashion. Code ActivityExecutes a snippet of.NET code. IfElse ActivityImplements If-Then-Else conditional logic within a workflow. While ActivityImplements looping logic within a workflow. Parallel ActivityComposite activity that executes two or more Sequence activities in a cooperative multithreaded manner. CallExternalMethod ActivityInvokes an external (.NET) method on an object, as defined in an interface bound to the activity.

The Workflow Runtime  The Workflow Runtime is responsible for coordinating the following events:  Starting workflow instances  Invoking workflow events  Tracks and uses pluggable services for providing functionality such as transactions, persistence, and tracking.  Only one Workflow Runtime can exist within the application executing the workflow.  Windows Forms, Console, ASP.NET applications  Windows Services  SharePoint

SharePoint Workflows in WF  SharePoint extends the WF foundational framework by adding new workflow activities.  Visual Studio add-ins are installed as part of the SharePoint 2007 SDK; supported by VS 2005 &  It is advisable to perform the development of SharePoint WF workflows on an actual server running SharePoint.  Results in simplified development and deployment since assembly references and post-build deployment steps are automated using the default project templates.  The development of custom workflow actions in Visual Studio that are callable from SP Designer workflows is also possible.

Custom Workflow Forms  SharePoint WF-based workflows can be configured to use a custom form for association, instantiation, and modification, as well as custom task forms.  These can be implemented as ASPX forms or as InfoPath web- enabled forms (MOSS only) Form TypeDescription AssociationUsed to capture information when a workflow is associated with a list or document library. InitiationUsed to capture information when a workflow is manually started for an item by a user. Task CompletionUsed to capture custom information when a workflow participant completes a task. ModificationUsed to capture changes for processing workflows, if they are modified externally.

SharePoint WF Activities Activity NameDescription OnWorkflowActivated ActivityStarting activity for all SharePoint WF workflows; can accept inputs from Association & Initiation forms. CreateTask ActivityCreates a new task for a given user in the workflow. OnTaskChanged ActivityCaptures changes to a task that affect workflow processing. Send ActivitySends to a person or group of people. LogToHistoryList ActivityAllows entries to be written to a workflow’s History list, for tracking purposes. OnWorkflowModified ActivityAccepts inputs from the Modification form to change a workflow’s behavior.

SharePoint WF Development Tasks  Create a SharePoint Sequential or State Machine workflow project within Visual Studio  Add and configure activities on the WF design surface.  Create any necessary custom forms (InfoPath or ASP.NET-based)  Create a workflow.xml file.  Create a SharePoint feature for deploying the workflow and custom forms (if any).

Demo  WF Workflow Example – Content Submission  Process the serial approval of an item within a document library.  Upon approval, the document is automatically moved to a secured document library.

Custom SP Designer Actions  Allows custom logic to be leveraged in SP Designer workflows.  All built-in actions within SP Designer are custom WF activities  Defined in 12\TEMPLATE\1033\WORKFLOW\WSS.ACTIONS  Custom actions are created within Windows WF Activity Library projects in Visual Studio  New actions require a one-time server deployment process, yet they can be leveraged on any SP Designer workflows that are developed.  No client deployment is required.

Custom Action Development Tasks  Create a new Workflow Activity Library project in Visual Studio  Create 1 or more DependencyProperties for handing custom action inputs and outputs.  Define custom execution logic using Workflow activities or by overriding the Execute method of the custom activity being developed.  Create a.ACTIONS file (XML), describing the custom action.  Deploy to 12\TEMPLATE\1033\WORKFLOW  Deploy assembly to GAC and add an authorizedType entry in the web.config for it.

SP Designer Auto-Properties  The following properties, if defined on a custom SP Designer workflow action, are auto-populated with data at runtime. Property NameAssigned Value.NET Data Type __ActivationPropertiesThe activation properties data for the running workflow instance. Microsoft.SharePoint.Workflow.SPWo rkflowActivationProperties __ListIdString containing the GUID for the list the workflow is defined on. System.String __ListItemInteger value for the list item the workflow instance is running on. System.Int32 __ContextThe context object for the running workflow instance. Microsoft.SharePoint.WorkflowAction s.WorkflowContext

Demo  Custom SharePoint Designer Workflow Action  Create sub-site using input parameters of Site Title and Site Description.

Wrap-up  Custom-developed Windows WF solutions are supported on the SharePoint 2007 platform:  Sequential & State Machine workflows  Custom activities (actions) for use in SP Designer  Decision factors to determine the technology to use:  Developer skillsets  Information Worker roles vs. Developer roles  Reusability needs  Governance policies in place  Questions?