Download presentation
Presentation is loading. Please wait.
Published byPaul Stewart Modified over 7 years ago
1
Joy Rathnayake Senior Architect – Virtusa Pvt. Ltd.
Developing real-life business process automation applications with SharePoint 2010 and Visual Studio 2010 Joy Rathnayake Senior Architect – Virtusa Pvt. Ltd.
2
Who am I? MVP - SharePoint Server Microsoft Certified Trainer (MCT)
Tech-Ed Speaker Author, Consultant Trainer Senior Architect (Principal Architect) – Virtusa Pvt. Ltd. MCP, MCAD, MCPD
3
Agenda The Connected Enterprise Workflow Solution Spectrum
.NET, WF and SharePoint 2010 Workflow changes in SharePoint 2010 Import SharePoint Designer 2010 Workflows InfoPath and Workflow Forms SharePoint and Workflow Communication Workflow Event Receivers
4
The Connected Enterprise
Collaboration happens on SharePoint People at work Data they make and use Workflows to manage it Two types System – moves data in and out of SharePoint Human – support people with long-running processes People Content
5
Workflow Solution Spectrum
Out-of-Box Workflows Ready to use Common approval scenarios Out-of-Box Customization Association and initiation settings Modify logic in SharePoint Designer Design forms in InfoPath Custom Declarative Start from scratch or from existing New actions Task process framework More types of workflows Custom Activities Encapsulate custom code in new action Deploy in full or partial trust (as user code) Custom Non-Declarative Import solution into Visual Studio Advanced modeling Hook up workflow to events Increasing Functionality Browser SharePoint Designer Visual Studio
6
Extending The Platform
Plug in your own custom activities Fully-trusted deployment or Sandboxed deployment Extend existing activities Office Task exposed in Visual Studio 2010 Get the flexibility of the custom code (C#/ VB.NET) Custom forms code-behind Handle workflow events Pluggable services that enable external channels to talk to your workflow
7
.NET, WF & SharePoint SharePoint 2010 uses .NET Framework 3.5.1
SharePoint 2010 uses WF 3.5 not WF 4.0 WF 4.0 features will not be part of SharePoint 2010
8
Workflow Changes in SharePoint 2010
New Workflow Activities 22 new activities (SubmitFileActivity/ CommentActivity/ HTLookupActivity/ WaitForDocumentUnlockActivity) Pluggable Workflow Services Add the ability for workflows to interact and receive data from external sources Workflow Events Site Workflows Reusable Declarative Workflows
9
Import SPD Workflows SharePoint Designer 2010 has a new reusable declarative Workflow template Once deployed it can be saved to a template (.wsp) Template can be imported into Visual Studio 2010 and modified wsp Deploy Package Create New Project Import WSP Save to File System
10
DEMO Import and Extent a SPD Workflow in VS 2010
11
Site Workflows In SharePoint 2010, Workflows don’t have to be associated with a List instance No need to create a “dummy” list just to get a workflow to run Can be executed from the Site Settings page Potential uses Accessing External Data - BCS General Business Logic Managing Site permissions Managing Site or Item (across Lists) creation
12
Workflows Two types Sequential Workflows State-machine Workflows
13
DEMO Developing a Workflow with Visual Studio 2010
14
InfoPath & Workflow Forms
Association Form – collects configuration data Initiation Form – collects user data Task Form – communicates between users and workflow InfoPath Forms can be published to SharePoint 2010 Document Library No code allowed No re-use in other libraries ContentType Can be re-used in other libraries Administrator-Approved Code is allowed Can be re-used anywhere in the Farm Requires Administrator for the deployment
15
WorkflowTask Content Type
Basis of all workflow tasks Id is 0x010801 Hidden by default TaskListContentTypeID attribute in workflow feature’s element manifest binds the custom Task Form Alternatively can use CreateTaskWithContentType activity and specify ContentTypeId property
16
DEMO Workflows and Forms in Visual Studio 2010
17
SharePoint and Workflow Communication
Workflow communication in SharePoint is done via Pluggable External Data Exchange (PEDS) Built on top of Workflow Queue Infrastructure EDS uses an interface definition for workflow/host communication “Local Service” implements interface HandleExternalEvent triggered by firing interface event [host to workflow] CallExternalMethod calls interface method [workflow to host]
18
Workflow Event Receivers
SharePoint’s WorkflowRuntime is “closed” No way to hook into WorkflowRuntime events No of Events were very limited Workflow Event Receives in SharePoint Server 2010 are code-based Event Receivers Similar to List Event Receivers Support built into Visual Studio 2010 SharePoint tools EventReceiver Project or Item template
19
SPWorkflowEventReceiver
New SPEventReceiverBase-derived class for 2010 Derived and override methods for needed functionality Starting Started Postponed Completed Register as EventReceiver for a list Associates with list workflows automatically
20
Resources Workflow Changes in SharePoint Workflow Development Tools Comparison -
21
Software Application Developers Infrastructure Professionals
Resources Software Application Developers Infrastructure Professionals msdnindia @msdnindia technetindia @technetindia
22
© 2011 Microsoft Corporation. All rights reserved
© 2011 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.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.