Name : Ted Pattison Title: Author/Instructor Company: Critical Path Training Session Code: OFC320.

Slides:



Advertisements
Similar presentations
Designing, Deploying and Managing Workflow in SharePoint Sites Steve Heaney Product Development Manager OBS
Advertisements

Hilton Giesenow - The MOSS Show Overview of the SharePoint 2010 Developer Platform SESSION CODE: OFC308.
Mark Rees Microsoft Consulting Services OFC409 Windows Workflow Foundation (WF) Primer Creating WF programs in Visual Studio Creating workflow templates.
SharePoint Collaboration Features & Workflow
Using Microsoft SharePoint to Develop Workflow and Business Process Automation Ted Perrotte National Practice Manager, Quilogy, Microsoft Office SharePoint.
Workflows in SharePoint Brian Russo RJB Technical Consulting July 2009.
Dan Parish Program Manager Microsoft OFC305 Excel Services Microsoft Office Excel 2007 Thin Rendering in Browser View and interact Custom Applications.
Larry Mead Microsoft Corp. Jon Flanders Session Code: INT203.
Matthew McDermott, MVP Principal Consultant Catapult Systems, Inc. OFC315.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Workflow and SharePoint Presented by Ben Geers. Overview What is workflow? Windows Workflow Foundation How does workflow apply to SharePoint? WSS v3 vs.
Developing Workflows with SharePoint Designer David Coe Application Development Consultant Microsoft Corporation.
J.R. Arredondo and Dave Pae Microsoft Corp Session Code: OFC321.
WEB 304 An Overview of ASP.NET and Windows Workflow Foundation Kashif Alam Program Manager Developer Division Microsoft Corporation.
SharePoint Workflows with Visual Studio Stuart Cox RBA Consulting techpunch.wordpress.com.
Robert LevyDoug Kramer Program ManagerDevelopment Lead DTL337.
Office Business Applications Workshop Defining Business Process and Workflows.
Asif Rehmani Trainer SharePoint-eLearning.com OFC 323.
Ram Cherala Principal Program Manager Microsoft Corporation DTL320.
Eric White Technical Evangelist Microsoft Corporation Session Code: OFC403.
Siddharth Bhatia Senior Program Manager Microsoft Session Code: DTL301.
Connect with life Vedant Kulshreshtha Technology Solutions Professional – SharePoint | Microsoft India
Eric Carter Development Manager Microsoft Corporation OFC324.
The 2007 Microsoft Office System Servers Enterprise Content Management, Workflow and Forms Martin Parry Developer and Platform Group, Microsoft Ltd
Todd Klindt That guy Solanite Consulting Shane Young And that other guy SharePoint911 OFC404.
Asif Rehmani Trainer SharePoint-eLearning.com OFC 301.
OFC308 Hilton Giesenow Development Manager - 3fifteen Host –
Workflow in Microsoft Office SharePoint Server Jessica Gruber Consultant Microsoft Corporation.
Mark Michaelis Chief Computer Nerd IDesign/Itron/IntelliTechture DTL313.
Scott Morrison Program Manager Microsoft Corporation Session Code: WUX308.
Joy Rathnayake Senior Architect – Virtusa Pvt. Ltd.
6/2/2018 3:37 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Tech·Ed North America /6/2018 2:20 AM
6/13/2018 1:23 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Business Connectivity Services in SharePoint 2010 and Office 2010
Tech·Ed North America /7/2018 2:58 PM
Tech·Ed North America /14/2018 7:13 PM
Office Power Hour New developer APIs and features for Apps for Office
Overview of Social Computing in Microsoft SharePoint 2010
11/22/2018 8:05 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Matt Masson Software Development Engineer Microsoft Corporation
Advanced Dashboard Creation Using Microsoft SharePoint Server 2010
TechEd /4/2018 3:19 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Tech·Ed North America /7/2018 2:51 PM
Team Foundation Server 2010 for Everyone
Authoring for Microsoft Silverlight 4 with Microsoft Expression Blend
Tech·Ed North America /31/2018 8:24 PM
Tech Ed North America /1/ :36 AM Required Slide
Tech Ed North America /1/2019 2:58 AM Required Slide
Intro to Workflow Services and Windows Server AppFabric
Tech·Ed North America /2/2019 4:47 PM
TechEd /11/ :54 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Microsoft SharePoint Conference 2009 Jon Flanders
Building Awesome Metro style HTML apps in Blend
Visual Studio 2010 SharePoint Development Tools Overview
Peter Provost Sr. Program Manager Microsoft Session Code: DEV312
Tech·Ed North America /22/2019 7:40 PM
Building Silverlight Apps with RIA Services
Developing and Managing SharePoint Solutions with Visual Studio 2012
Developing and Managing SharePoint Solutions with Visual Studio 2012
TechEd /7/2019 1:14 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Tech Ed North America /12/2019 6:45 AM Required Slide
Brandon Bray Principal Group Program Manager Microsoft Corporation
TechEd /11/ :25 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
How and When to Use MEF: Too Much Is Never Enough
TechEd /27/2019 5:37 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Build /20/2019 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Inside the Windows 8 driver developer workflow
Tech·Ed North America /17/2019 4:14 PM
TechEd /5/2019 2:08 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Presentation transcript:

Name : Ted Pattison Title: Author/Instructor Company: Critical Path Training Session Code: OFC320

Agenda Windows Workflow Foundation (WF) Primer Creating WF programs in Visual Studio Creating workflow templates for WSS Workflow associations and workflow instances Creating and waiting on WSS tasks Integrating workflow input forms

Reactive Programs Automating a business process Often requires program with episodic behavior Program waits around and then reacts to some event How would you automate document approval? In a Windows Forms application In an ASP.NET Application

Windows Workflow Foundation (WF) What is the Windows Workflow Foundation? Development platform for building reactive programs Set of development tools integrated with Visual Studio Runtime components that ship with.NET FX 3.0 Windows Workflow Foundation concepts WF program Workflow instance Activities

An activity is atomic set instructions used complete a unit of work reusable component used to compose WF programs Activities are like a controls in forms development You drag and drop them onto a design surface You modify their properties through property sheet You generate event handlers and write code inside Activities are different than controls Activities are resumable

Composite Activities Composite Activities can contain children Composite activity controls execution of children Composite activity can encapsulate control-of-flow Examples: IfElse, While, Sequence, Parallel, Replicator WF program is itself a composite activity WF program models a tree of activities

WF Base Activity Library Standard WF activities provide basic building blocks

WF Program Types WF provides two main styles of WF programs Sequential WF program modeled as flow chart State machine WF program models using states

Visual Studio Workflow Designer

Developing Workflow Programs with Visual Studio 2008

The WF Runtime

WF Runtime Services Custom services can be written and plugged in WSS provides its own persistence service

SharePoint Workflow Concepts Design goals for WF integration with WSS Use WF to attach logic to items and documents Add a human dimension on top of WF Maintain self-service capabilities common in WSS Create strong developer story for custom WF programs Provide valuable WF programs out-of-box with MOSS The human dimension Any SharePoint workflow can assign tasks to users Users can see the status of any workflow instance

SharePoint Workflow Actors Workflow template WF Program and optionally workflow input forms A feature to install it inside WSS farm Workflow association Binding of workflow template to list or content type A named instance containing parameterized data Workflow instance A running instance of a WF program attached to an item

Creating a Workflow Association

Starting a Workflow Instance Users can manually start workflows

The Workflow Status Page Any user can see the status of a workflow instance

Creating and Managing Workflow Associations

WSS/MOSS Workflow Options Use out-of-box workflow templates from MOSS You have just seen how easy they are to use Use SharePoint Designer to create workflows SPD creates ad-hoc workflow association inside site Easy to create but hard/impossible to reuse/deploy Develop custom workflow templates with Visual Studio 2008 which target WSS3 and/or MOSS This is what this session is all about

Creating a Workflow Template Project Creating SharePoint Workflow Project in Visual Studio 2008

Complete the Wizard Step 1 – Specify SharePoint URL Enter the name of the workflow Specify the URL to SharePoint site

Complete the Wizard The following lists need to be available: Document Library Tasks list History list

Complete the Wizard Step 2 – select the necessary lists List or document library to associate workflow History list Tasks list

Complete the Wizard Step 3 – decision on how to start the workflow

Creating and Debugging a Workflow Template with Visual Studio 2008

Developing the WF Program Getting around inside the Workflow Designer Learn to move between Designer view and code View Get to Know the Activities in the SharePoint Activity Library

Working in Code View Here is what you get as a starting point

SharePoint Activity Library WSS-specific activities used to create SharePoint WF Programs

Data Bound Properties WF supports data binding of properties Allows for declarative flow of data between activities Used extensively for creating SharePoint WF programs

Generating Event Handlers Generate event handlers to add code Event handlers can program against WF objects Right-click on activity and choose Generate Handlers

Workflow Template Deployment Workflow templates are deployed via features Feature must be scoped to site collection (Scope=Site) Feature may contain multiple workflow templates

Workflow Template Definition Workflow Element defines Workflow Template Must point to one specific WF program WF program must be compiled into an assembly DLL Assembly DLL must be installed in GAC

Testing 'Hello World' Workflow Template

Creating and Waiting on Tasks SharePoint Workflows revolve around tasks Represent significant value-add WSS brings to WF Based on standard WSS tasks visible/editable by users Users update tasks through browser or Office programs Your code automatically wakes up and executes WSS Tasks are generated with subscriptions WSS encapsulates the listener mechanism WSS registers event handlers behind the scenes You just add event activities and write event handlers

Task GUIDs and Correlation Tokens WSS sets up subscriptions for tasks Based on registering event handlers WSS needs way to identify certain task across activities Each task is assigned a GUID and a correlation token

Action Activities vs. Event Activities Action activities perform work Their event handlers fire before work is done Event activities run code in response to an event Their event handlers run after the event has occurred Action Activities are blue Event Activities are green

Initializing a New Task Add event handler behind CreateTask activity This event handler fires before task creation Gives you a chance to initialize task properties

Waiting on a Task Event activity creates subscription OnTaskChanged puts activity to sleep Event handler fires upon modification While activity used to control flow While activity loops until task complete

Creating Workflow Forms with ASP.NET Workflow input forms can be created in ASP.NET Benefits to creating workflow forms with ASP.NET Can run from WSS-only farms Drawback to creating forms with ASP.NET More coding involved

ASP.NET Workflow Form Integration Custom task content type custom Application Pages in _layouts

Integrating Workflow Input Forms Workflow Input Form Types Association form Initiation forms Modification forms Task edit form Sample Project LitwareWorkflows

The Association Form

The Initiation Form

Invoking the Modification Form There is one link per modification

The Task Edit Form

Creating Workflow Forms with InfoPath Workflow input forms can be created in InfoPath Benefits to creating workflow forms with InfoPath Significantly better forms designer experience Significantly less coding Forms can be opened directly with Office client apps Drawback to creating forms with InfoPath Workflow template will only run in MOSS farms Workflow template will not run in WSS-only farms

InfoPath Workflow Form Integration urn:schemas-microsoft-com:office:infopath:ReviewInitiationForm2:-myXSD T standard MOSS task content type standard MOSS application pages

Integrating Workflow Input Forms Workflow Input Form Types Association form Initiation forms Modification forms Task edit form Sample Project LitwareWorkflows

Summary Windows Workflow Foundation (WF) Primer Creating WF programs in Visual Studio Creating workflow templates for WSS Workflow associations and workflow instances Creating and waiting on WSS tasks Integrating workflow input forms

Attend an Interactive Theater Session and enter to win a Microsoft ARC Mouse Attend any SharePoint Breakout Session day 1 – 4 and check the last slide for a daily picture. Come to the TLC yellow area, SharePoint booths OFC 4 and 5 to spin the wheel for a chance to win a prize. The wheel only spins when the SharePoint spotlight is flashing. One spin per person. Collect all four daily SharePoint pictures and enter to win a Microsoft ARC Mouse. Game cards can be picked up at the booth. Drawing for Mice on Friday at the wheel at 11:30AM. Monday’s Picture is: Red Carpet Collect the SharePoint Session Picture of the Day

Track Resources Spin the Wheel: Attend SharePoint breakout sessions Mon-Thurs and collect the picture of the day. Come by the booth for a chance to spin the SharePoint wheel. Collect all 4 pictures and enter to win a Microsoft Arc Mouse, drawing 11:30am on Friday, game cards at the booth. Product Info Product Info Dev Resources SharePoint MSDN Web Site: SharePoint Developer Resources: SharePoint Conference ITPro Resources SharePoint Tech Center: SharePoint Tech Center: SharePoint Best Practices: SharePoint Best Practices: us/office/sharepointserver/bb aspx us/office/sharepointserver/bb aspx

Sessions On-Demand & Community Resources for IT Professionals Resources for Developers Microsoft Certification and Training Resources Microsoft Certification & Training Resources Resources

Complete an evaluation on CommNet and enter to win! Required Slide

© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. Required Slide