OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.
-
date post
19-Dec-2015 -
Category
Documents
-
view
308 -
download
0
Transcript of OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.
![Page 1: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/1.jpg)
OFC 317OFC 317使用使用 WinWFWinWF 构建构建 Microsoft OffiMicrosoft Office SharePoint Server 2007ce SharePoint Server 2007 中中的工作流应用的工作流应用
![Page 2: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/2.jpg)
AgendaAgenda
Options for workflow developmentOptions for workflow development
The business processes we will modelThe business processes we will model
Demo: Using WF in OSS & 2007 Office Demo: Using WF in OSS & 2007 Office systemsystem
Describe the design, develop, debug Describe the design, develop, debug & deploy steps& deploy steps
Demos: Demos: Implementing Workflows in SPS & Office 2007Implementing Workflows in SPS & Office 2007
Building, Implementing and deploying Building, Implementing and deploying workflows for SharePoint & Office 2007 in workflows for SharePoint & Office 2007 in VS.NET 2005 VS.NET 2005
Advanced WF: Design Pattern – WF as Middle Advanced WF: Design Pattern – WF as Middle Tier ArchitectureTier Architecture
![Page 3: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/3.jpg)
Windows Workflow Foundation Windows Workflow Foundation Vision:Vision:
Deliver best-in-class workflow platformDeliver best-in-class workflow platform& tools for Microsoft products and& tools for Microsoft products and
partner/customer ecosystempartner/customer ecosystem
Single workflow technologySingle workflow technology for Windowsfor WindowsBase for Microsoft products and ISV/customer solutionsBase for Microsoft products and ISV/customer solutions
One technology for human and system workflowOne technology for human and system workflow
A A frameworkframework not a server product or not a server product or applicationapplication
An extensible framework based on Microsoft .NETAn extensible framework based on Microsoft .NET
Ships as Part of .NET 3.0 (WinFX), which ships in WindowsShips as Part of .NET 3.0 (WinFX), which ships in Windows
Make workflow Make workflow mainstreammainstream for .NET for .NET developersdevelopers
Strong workflow partner & solution ecosystem Strong workflow partner & solution ecosystem
Reach mainstream application developer Reach mainstream application developer
![Page 4: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/4.jpg)
Stru
cture
d A
d H
oc
Stru
cture
d A
d H
oc
Microsoft Visual Studio Microsoft Visual Studio and workflow SDKand workflow SDK
Office SharePoint Office SharePoint Designer workflowsDesigner workflows
Out-of-the-Box Out-of-the-Box SolutionsSolutions(with customization)(with customization)
Application Task and Issue Tracking
Routing & ApprovalReview
ApprovalSignature collectionEast Asian workflow
Office Server FeaturesList Moderation
Publishing ProcessDocument Expiration
Document ProcessesDocument ProcessesSpec Review Spec Review
Weekly Status ReportWeekly Status Report
Custom Tracking AppsCustom Tracking AppsService RequestsService Requests
Asset TrackingAsset Tracking
Custom Form ActionsCustom Form ActionsEmail NotificationEmail Notification
Exception HandlingException Handling
LOB Integration
Purchase Order Processing
Product lifecycle management
Workflow ScenariosWorkflow Scenarios
![Page 5: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/5.jpg)
The Business ProcessThe Business Process
Request feedback
Send Task to Reviewer
Reviewer enters and
sends feedback
Review Completed
![Page 6: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/6.jpg)
Using WF in SharePoint Using WF in SharePoint 2007 & 2007 Office System2007 & 2007 Office SystemUsing WF in SharePoint Using WF in SharePoint 2007 & 2007 Office System2007 & 2007 Office System
![Page 7: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/7.jpg)
Development StepsDevelopment Steps
1.1. Model workflow in Microsoft Visual StudioModel workflow in Microsoft Visual Studio
2.2. Create and bind Microsoft Office InfoPath Create and bind Microsoft Office InfoPath formsforms
3.3. Deploy to Microsoft Office SharePoint Deploy to Microsoft Office SharePoint ServerServer
4.4. Debug the running workflowDebug the running workflow
![Page 8: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/8.jpg)
Model & Building Workflows In Model & Building Workflows In Visual Studio 2005Visual Studio 2005
Prerequisites:Prerequisites:Office SharePoint Server 2007 Beta 2Office SharePoint Server 2007 Beta 2
.NET 3.0 (WinFX) Runtime Components.NET 3.0 (WinFX) Runtime Components
Microsoft Visual Studio 2005 Extensions for Microsoft Visual Studio 2005 Extensions for Windows Workflow Foundation Beta 2.2 Windows Workflow Foundation Beta 2.2
Microsoft Windows Software Development Kit Microsoft Windows Software Development Kit (SDK) for Beta 2 of Microsoft Windows Vista (SDK) for Beta 2 of Microsoft Windows Vista
2007 Office System Starter Kit: Enterprise 2007 Office System Starter Kit: Enterprise Content Management Starter Kit Content Management Starter Kit
Create project of type “SharePoint Create project of type “SharePoint Sequential Workflow Library”Sequential Workflow Library”
Create the workflowCreate the workflow
![Page 9: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/9.jpg)
Create and Bind InfoPath FormsCreate and Bind InfoPath FormsTypes of InfoPath forms in WorkflowsTypes of InfoPath forms in Workflows
Association formAssociation formUser adds workflow to a listUser adds workflow to a list
For setting options on WFFor setting options on WF
Initiation formInitiation formFor manual workflow startFor manual workflow start
Collects workflow parametersCollects workflow parameters
Task completion formTask completion formA user to edit a task from WFA user to edit a task from WF
User edits or enters dataUser edits or enters data
Modification formModification formLinked off WF status pageLinked off WF status page
Can modify in-flight WFCan modify in-flight WF
![Page 10: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/10.jpg)
Create and Bind InfoPath FormsCreate and Bind InfoPath FormsInfoPath forms are used in these placesInfoPath forms are used in these places
![Page 11: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/11.jpg)
Hosting Environment Hosting Environment
Create and Bind InfoPath FormsCreate and Bind InfoPath FormsSharePoint hosts the InfoPath formSharePoint hosts the InfoPath form
InfoPath Form Templates
![Page 12: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/12.jpg)
Hosting Environment Hosting Environment
Create and Bind InfoPath FormsCreate and Bind InfoPath FormsData from SharePoint is passed inData from SharePoint is passed in
InfoPath Form Templates
SharePoint object
_________
_________
_________
![Page 13: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/13.jpg)
Hosting Environment Hosting Environment
Create and Bind InfoPath FormsCreate and Bind InfoPath FormsSubmit the form, saves data to SharePointSubmit the form, saves data to SharePoint
InfoPath Form Templates
SharePoint object
_________
_________
_________
![Page 14: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/14.jpg)
Hosting Environment Hosting Environment
Create and Bind InfoPath FormsCreate and Bind InfoPath FormsSharePoint starts the workflowSharePoint starts the workflow
InfoPath Form Templates
SharePoint object
_________
_________
_________
SharePoint -> Task/WF HostSharePoint -> Task/WF Host
![Page 15: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/15.jpg)
SharePoint Task
•instructions =“Please do this.”
Task data as xml
Create and Bind InfoPath Forms Create and Bind InfoPath Forms
Pushing data from WF task into InfoPathPushing data from WF task into InfoPath
InfoPath Task FormInfoPath Task Form
<z:row xmlns:z=“#RowSetSchema”
ows_MetaInfo_instructions=“”/>
![Page 16: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/16.jpg)
Deploy to SharePoint ServerDeploy to SharePoint Server
Generate Metadata filesGenerate Metadata filesFeature.XMLFeature.XML
Workflow.XMLWorkflow.XML
Install/activate the “feature”Install/activate the “feature”
IISResetIISReset
Associate workflow to the list/library Associate workflow to the list/library
![Page 17: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/17.jpg)
Debug the Running WorkflowDebug the Running Workflow
Visual Studio running on server machineVisual Studio running on server machine
Open the workflow in Visual StudioOpen the workflow in Visual Studio
Attach to all of the W3WP ProcessesAttach to all of the W3WP Processes
Start the workflowStart the workflow
![Page 18: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/18.jpg)
Building the WorkflowBuilding the Workflow
![Page 19: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/19.jpg)
Call to ActionCall to Action
WF plugs a large hole in the platform that WF plugs a large hole in the platform that used used to be hard because it had to be built by to be hard because it had to be built by handhand
WF provides a design time environment WF provides a design time environment that makes it easy to build even the most that makes it easy to build even the most complex workflowscomplex workflows
The 2007 Office system and SharePoint The 2007 Office system and SharePoint 2007 WF integration is fantastic; 2007 WF integration is fantastic; consequently, integrated solutions are consequently, integrated solutions are easy to design and buildeasy to design and build
![Page 20: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/20.jpg)
For More Information…For More Information…
WF on the .NET 3.0 (WinFX) Developer WF on the .NET 3.0 (WinFX) Developer Center:Center:http://msdn.microsoft.com/winfx/technologies/workflow/defahttp://msdn.microsoft.com/winfx/technologies/workflow/default.aspxult.aspx
Downloads:Downloads:Microsoft Visual Studio 2005 Extensions for WindowsMicrosoft Visual Studio 2005 Extensions for Windows Workflow Foundation Beta 2.2 Workflow Foundation Beta 2.2 Windows Workflow Foundation - Beta 2.2Windows Workflow Foundation - Beta 2.2 Windows Workflow Foundation Beta 2 HOL Windows Workflow Foundation Beta 2 HOL 2007 Microsoft Office System Beta 22007 Microsoft Office System Beta 2Microsoft® Windows® Software Development Kit Microsoft® Windows® Software Development Kit (SDK) for Beta 2 of Windows Vista and .NET 3.0 (SDK) for Beta 2 of Windows Vista and .NET 3.0 (WinFX) Runtime Components(WinFX) Runtime ComponentsWindows SharePoint Services SDK Beta 2Windows SharePoint Services SDK Beta 2Microsoft Office SharePoint Server SDK Beta 2Microsoft Office SharePoint Server SDK Beta 22007 Office System Starter Kit: Enterprise Content 2007 Office System Starter Kit: Enterprise Content Management Starter KitManagement Starter Kit
![Page 21: OFC 317 使用 WinWF 构建 Microsoft Office SharePoint Server 2007 中的工作流应用.](https://reader033.fdocuments.net/reader033/viewer/2022061413/56649d3e5503460f94a17217/html5/thumbnails/21.jpg)