Mark Rees Microsoft Consulting Services OFC409 Windows Workflow Foundation (WF) Primer Creating WF programs in Visual Studio Creating workflow templates.

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Identity Management - Login © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Reprint Outstanding Transactions Report © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Co- location Mass Market Managed Hosting ISV Hosting.
SharePoint Collaboration Features & Workflow
Using Microsoft SharePoint to Develop Workflow and Business Process Automation Ted Perrotte National Practice Manager, Quilogy, Microsoft Office SharePoint.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Workflows in SharePoint Brian Russo RJB Technical Consulting July 2009.
Feature: OLE Notes Migration Utility
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: SmartList Usability Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
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.
WinHEC /22/2017 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
WEB 304 An Overview of ASP.NET and Windows Workflow Foundation Kashif Alam Program Manager Developer Division Microsoft Corporation.
Name : Ted Pattison Title: Author/Instructor Company: Critical Path Training Session Code: OFC320.
NEXT: Overview – Sharing skills & code.
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.
A Windows Azure application runs multiple instances of each role A Windows Azure application behaves correctly when.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: Employee Self Service Timecard Entry © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Office Business Applications Workshop Defining Business Process and Workflows.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Connect with life Vedant Kulshreshtha Technology Solutions Professional – SharePoint | Microsoft India
demo Demo.
Feature: Void Historical/Open Transaction Updates © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.

Workflow in Microsoft Office SharePoint Server Jessica Gruber Consultant Microsoft Corporation.
Joy Rathnayake Senior Architect – Virtusa Pvt. Ltd.
Demand Management and Workflow
Microsoft Dynamics NAV 2018 – what’s new
Возможности Excel 2010, о которых следует знать
SharePoint Designer 2007 Overview and customization scenarios
Title of Presentation 12/2/2018 3:48 PM
Building event-driven, long-running apps with Windows workflow
Feature: Document Attachment - Flow from Master Records
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
日本初公開!? Vista の新機能を実演 とっちゃん わんくま同盟 7/23/2019 9:09 AM
Presentation transcript:

Mark Rees Microsoft Consulting Services OFC409

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

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…

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

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 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 provides two main styles of WF programs Sequential WF program modeled as flow chart State machine WF program models using states

Custom services can be written and plugged in WSS provides it own persistence service

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 status on any workflow instance

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 item

Creating a SharePoint Workflow Template First, install the WF Extensions for Visual Studio Second, install either the WSS SDK or the MOSS SDK Third, start creating SharePoint Workflow projects

Here is what you get as a starting point

WSS-specific activities used to create SharePoint WF Programs

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

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

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

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

SharePoint Workflows revolve around tasks Represents 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

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

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

Add event handler behind CreateTask activity This event handlers fires before task creation Gives you a chance to initialize task properties WSS creates task with subscription so that workflow instance wakes up when task is modified

Event activity creates subscription OnTaskChanged puts activity to sleep Event handler fires upon modifcation While activity used to control flow While activity loops until task complete

Workflow Input Form Types Association Form Initiation Forms Modification Forms Task Edit Form Sample Project LitwareWorkflows

There is one link per modification

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

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

© 2007 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.