Developing Visual Studio Workflows and Activities for SharePoint Sites



Similar documents
Workflow and Forms Services for People-Driven Process Management

David Chou. Architect Microsoft

FORMS & WORKFLOW SHAREPOINT Practical Discussion

New Nintex Workflow 2010 Business Value: Actions and Functions

SharePoint 2013 for Business Process Automation

SharePoint Checklist and Resources

Automating Business Processes Using SharePoint Designer

SharePoint for Developers. Lunch and Learn

Making SharePoint Work with Workflow. Robert L. Bogue 3 Part Presentation Series

What is a workflow? Workflows are a series of actions that correspond to a work process

2933A: Developing Business Process and Integration Solutions Using Microsoft BizTalk Server 2006

Noramsoft Inc. Noramsoft Inc. SPT2O1O - Course Description. Developing Solutions with SharePoint Server 2010 SPT2010. Noramsoft Inc. Noramsoft Inc.

Kit Rowley. Subject: Content type and workflow planning (SharePoint Server 2010) Attachments: image001.gif. Plan content types. Plan content types

> Define the different phases of K2 development, including: understand, model, build, maintain and extend

SHAREPOINT 2010 DEVELOPMENT : IN THE CLOUD. Faraz Khan Senior Consultant RBA Consulting

Microsoft Technology Practice Capability document. MOSS / WSS Building Portal based Information Worker Solutions. Overview

The Core Pillars of AN EFFECTIVE DOCUMENT MANAGEMENT SOLUTION

SharePoint Training DVD Videos

Building Business Applications with SharePoint 2010 and Office October 22, 2010

SharePoint 2010/2013 Course

SPT2013: Developing Solutions with. SharePoint DAYS AUDIENCE FORMAT COURSE DESCRIPTION STUDENT PREREQUISITES

K2 blackpearl vs. K2 blackpoint

The Recipe for Sarbanes-Oxley Compliance using Microsoft s SharePoint 2010 platform

So you want to develop SharePoint workflows not sure where to start? Then perhaps this paper can help.

Advanced SharePoint Tools to Enhance Project Management

Enterprise Application Development in SharePoint 2010

SharePoint Services: Using Workflows

ERPConnect Services: Integrating your Nintex Workflow solutions with SAP. Theobald Software Inc.

No-Code SharePoint 2013 Workflows with SharePoint Designer 2013 and Visio 55048A; 3 Days, Instructor-led

SharePoint 2013 Syllabus

K2 Appit for SharePoint and SharePoint 2013 TECHNICAL COMPARISON

Testing Tools using Visual Studio. Randy Pagels Sr. Developer Technology Specialist Microsoft Corporation

Course 20489B: Developing Microsoft SharePoint Server 2013 Advanced Solutions OVERVIEW

Document Management. Document Management for the Agile Enterprise. AuraTech Pte Ltd

Using Microsoft SharePoint to Develop Advanced Forms and Workflow Automation

K2 [blackpearl] deployment planning

Developing Microsoft SharePoint Server 2013 Advanced Solutions

SharePoint 2010 Workflows

Course 10232: Designing and Developing Microsoft SharePoint Server 2010 Applications

MS 10978A Introduction to Azure for Developers

Michael Noel. Colin Spence. SharePoint UNLEASHED. 800 East 96th Street, Indianapolis, Indiana USA

SHAREPOINT 2016 POWER USER BETA. Duration: 4 days

Effective Team Development Using Microsoft Visual Studio Team System

How To Build A Financial Messaging And Enterprise Service Bus (Esb)

GSA2013: The Great SharePoint Adventure 2013

The SharePoint 2010 Developer Platform

Active Directory Rights Management Services integration (AD RMS)

MS 50547B Microsoft SharePoint 2010 Collection and Site Administration

DMSplus for Microsoft SharePoint 2010

Course 10978A Introduction to Azure for Developers

Course 10175A - Microsoft SharePoint 2010, Application Development

Developing Microsoft SharePoint Server 2013 Core Solutions

SharePoint Integration

MOC 10964C: Cloud and Datacenter Monitoring with System Center Operations Manager

Developing Microsoft SharePoint Server 2013 Advanced Solutions

Programming with the Microsoft.NET Framework Using Microsoft Visual Studio 2005 (VB)

Designing and Developing Microsoft SharePoint Server 2010 Applications (MS10232)

Migration from SharePoint 2007 to SharePoint 2010

Nintex Workflow 2013 & InfoPath Form Design workshop

Deploy Your First CF App on Azure with Template and Service Broker. Thomas Shao, Rita Zhang, Bin Xia Microsoft Azure Team

STEVEN MANN. InfoPath* with. SharePoint HOW-TO. 800 East 96th Street, Indianapolis, Indiana USA

Course Outline: Course 20489B: Developing Microsoft SharePoint Server 2013 Advanced Solutions

Implementing and Administering an Enterprise SharePoint Environment

Introducing Windows Workflow Foundation. Building Basic Activities. Building Composite Activities. Activity Development Advanced Features

Visendo Fax Server Integration With SharePoint Server

Implementing and Maintaining Microsoft SQL Server 2008 Integration Services

Advanced Workflow Concepts Using SharePoint Designer 2010

IT Initiatives Workflow Automation Solution

Designing and Developing Web Applications by using the Microsoft.NET Framework

DE-20489B Developing Microsoft SharePoint Server 2013 Advanced Solutions

SAV2013: The Great SharePoint 2013 App Venture

Course: 10174B: Configuring and Administering Microsoft SharePoint 2010

10232: Designing and Developing Microsoft SharePoint Server 2010 Applications

Intro to Developing for SharePoint Online: What Tools Can I Use?

Course 10174B: Configuring and Administering Microsoft SharePoint 2010

10174: Configuring and Managing Microsoft SharePoint 2010

Configuring and Administering Microsoft SharePoint 2010

Developing Microsoft SharePoint Server 2013 Advanced Solutions MOC 20489

Workflow and BPM: What Are the Differences?

"Charting the Course to Your Success!" MOC B Configuring and Administering Microsoft SharePoint Course Summary

SHAREPOINT ARCHITECTURE FUNDAMENTALS

SharePoint Information Architecture: The Tools of the Trade By Steven Pogrebivsky, CEO at MetaVis Technologies

This three-day instructor-led course provides students with the tools to extend Microsoft Dynamics CRM 4.0.

Enterprise Content Management with Microsoft SharePoint

Course: SharePoint 2013 Business Intelligence

Transcription:

Developing Visual Studio Workflows and Activities for SharePoint Sites Steve Heaney Product Development Manager Nintex steve.heaney@nintex.com

Agenda Workflow authoring scenarios Windows Workflow Foundation (WF) overview SharePoint Integration with WF Demo - Using the workflow Developing workflow with Visual Studio Demo - Building the workflow

Workflow Authoring Scenarios Visual Studio and Workflow SDK SharePoint Designer Workflow Out-of-the-Box Solutions (with customization) Custom Form Actions Email Notification Exception Handling Routing and Approval Review Approval Signature collection East Asian workflow LOB Integration Industry specific processes Purchase orders Product lifecycle mgmt Custom Tracking Apps Service Requests Asset Tracking Tracking Applications Issue tracking Document Processes Spec Review Weekly Status Report Office Server Features List Moderation Publishing Process Document Expiration Structured Ad Hoc

Windows Workflow Foundation (WF) Single workflow technology for Windows Extensible framework & toolset Base platform for Microsoft, ISV and customer solutions A framework for building workflow into applications A framework to build on - not an application or server Exposed to developers via.net 3.0 Office 2007 Future MSFT Application Custom ISV Application Windows Workflow Foundation (WF).NET 3.0 Framework Windows Operating Systems (Client and Server)

What are workflows? Encapsulated logic for coordinating business processes provides abstractions to model real world processes valuable for modeling long running and stateful behavior Workflows in WF are decomposed into activities Sequential workflows State machine workflow modeled as flowchart modeled as state diagram

What are activities? Activities are reusable components (like form controls) Model based on activity producers and consumers Producer encapsulates logic into reusable black box Producer exposes behavior through properties and events Consumer drops activity on workflow designer in Visual Studio

Office Activity Examples Activities are the building blocks of workflows. Create Task Complete Task On Task Change Delete Task Update Item Create Item Copy/Delete Item On Item Change Log to workflow history list

Creating your own Activities Create a new Workflow Activity Library project Inherit from System.Workflow.ComponentModel.Activity Must override the Execute method Write your custom code Define custom Properties

WSS Workflow Fundamentals WSS supports workflows on items and documents WF associated with list, document library or content type WF can be started and completed by user actions WF can be configured to start without user action WSS adds a dimension of human accountability All WSS workflows are associated with a task list WSS adds a dimension of tracking and reporting All WSS workflows are associated with a workflow history list

WSS Workflow Architecture Workflows are run on items and documents Workflows associated with list, document library or content type Farm-wide table tracks associations to WF templates Workflow Template Collection Workflow Assembly Workflow A Content Type List Farm-level Workflow Association Table Workflow B Workflow Assembly Document Library Workflow C Workflow Assembly

Sample Business Process

Simplified Business Process

Using The Workflow

Development Steps 1. Model workflow in Visual Studio 2. Create and bind InfoPath forms 3. Deploy to SharePoint server 4. Debug the running workflow

Model Workflow In Visual Studio Prerequisites: Visual Studio 2005 extensions for WF (RC5) SharePoint 2007 SDK Visual Studio templates for SharePoint workflow Create project of type SharePoint Sequential Workflow Library Create the workflow Visual Studio 2005 extensions for WF http://www.microsoft.com/downloads/details.aspx?familyid=5d61409e- 1FA3-48CF-8023-E8F38E709BA6 SharePoint Server 2007 SDK: http://www.microsoft.com/downloads/details.aspx?familyid=6d94e307-67d9-41ac-b2d6-0074d6286fa9

Create And Bind InfoPath Forms Types of InfoPath forms in Workflows Association form User adds workflow to a list For setting options on WF Initiation form For manual workflow start Collects workflow parameters Task completion form A user to edit a task from WF User edits or enters data Modification form Linked off WF status page Can modify in-flight WF

Create And Bind InfoPath Forms InfoPath forms are used in these places

Create And Bind InfoPath Forms SharePoint hosts the InfoPath form Hosting Environment

Create And Bind InfoPath Forms Data from SharePoint is passed in SharePoint object Hosting Environment

Create And Bind InfoPath Forms Submit the form, saves data to SharePoint SharePoint object Hosting Environment

Create And Bind InfoPath Forms SharePoint starts the workflow SharePoint object Hosting Environment SharePoint -> Task/WF Host

Create and Bind InfoPath Forms Pushing data from WF task into IP SharePoint Task instructions = Please do this. Task data as xml ItemMetadata.xml <z:row xmlns:z= #RowsetSchema ows_instructions= /> InfoPath Task Form

Deploy To SharePoint Server Generate Metadata files Feature.XML Workflow.XML Create the CAB (WSP) Box admin installs WSP file Install/activate the feature IISReset Associate workflow to the list/library

Debug The Running Workflow Visual Studio running on server machine Open the workflow in Visual Studio Attach to all of the W3WP Processes Start the workflow

Building The Workflow

Recap Steps involved Create Workflow project in Visual Studio 2005 Model the workflow Create and bind InfoPath forms Design workflow code and activities Sign and compile the assembly Author the feature definition file Add GUID Add title Add description Add manifest location Author workflow template definition file Add GUID Add name Add description Add form URN s Add assembly details extract the public key Run the post build event to deploy the workflow Associate the workflow to a list Attach to the W3WP.exe process and debug

VSTO to make it easier Visual Studio tools for Office (VSTO) soon to be released Include new VS templates for SharePoint workflow Development steps with VSTO Create workflow in Visual Studio Tools for Office Design the actual workflow, add code etc. (This is the real developer task) Press F5

Thank you! Questions?