Professional Documents
Culture Documents
Presentation Framework ASP.NET ADO.NET Language Integrated Query Windows Communications Foundation Windows Workflow Foundation
System.Windows (3.0) System.Web (2.0) System.Data System.Query (F) System.ServiceModel (3.0) System.Workflow (3.0)
Annotations Compilation Common System.Data.DLinq (F) Channels System.Workflow.Activities (3.0)
Automation Configuration Odbc System.Xml.XLinq (F) Configuration Rules
Controls Handlers OleDb System.Expressions (F) Diagnostics System.Workflow.ComponentModel (3.0)
Data Hosting OracleClient Integration Compiler
Documents Mail Windows File System QueueHelper Designer
Sql System.Storage (F)
Ink Management SqlClient System.ServiceModel.Security(3.0) Serialization
Interop Core Protocols System.Workflow.Runtime (3.0)
Security
Navigation Audio Tokens Hosting
UI (2.0) ASP.NET Data Management
Resources System.Web Calendar Messaging
Util
Serialization Caching Contacts Network Class Library
Shapes Profile Documents System.Net ASMX Web Services
Printing Subsystem Image
Threading SessionState Cache System.Web.Services
System.Printing (3.0) Media
System.Windows.Media (3.0) Mail (2.0)
Messages Identity Management
3D GDI+ XML Data
Network Information (2.0)
System.Drawing Rules Security (2.0) Microsoft.InfoCards (3.0)
Animation System.Xml
Imagine Design Sync Sockets
Schema MSMQ
Drawing2D Video
Serialization System.Messaging
Windows Forms Printing .NET Remoting
System.Windows.Forms (2.0) XPath XPS Documents
Xsl System.Runtime.Remoting Directory Services
Design System.Windows.Xps (3.0)
System.IO.Packaging (3.0) System.DirectoryServices
Layout .NET Remoting
VisualStyles System.Runtime.Remoting
Speech Integration
System.Speech (3.0)
Recognition
Synthesis
FUNDAMENTALS
BASE CLASS
LIBRARIES
System System.Text System.Text System.Text Managed Add-In System.Runtime
Generic (2.0) AccessControl Framework CompilerServices
System.CodeDom System.ServiceProcess (2.0) System.Addins (F) ConstrainedExecution(2.0)
System.Reflection Cryptography (2.0)
System.ComponentModel System.Threading Contact InteropServices
Email Permissions Hosting
System.Diagonostics System.Timers Policy Microsoft.Build (2.0)
System.Configuration Serialization
System.IO (2.0) System.EnterpriseServices Principal (2.0) Versioning
System.Resrouces System.Transactions (2.0)
“ClickOnce” Deployment
System.Deployoment (2.0)
KEY
Access
SharePoint
Authoring
Browser Designer
Outlook
SharePoint Apps
UI
Services
Source Task
List List
History Reporting
List & Admin
Initiation and
parameter setting Wizard-based
WF Web authoring
Task Completion
Service
Task and
Initiation Forms integration
Reporting
Administration
Notification
parameter setting Application
Reporting/Status
Task
Ad-hoc deployment
Initiation
Completion
Customization
(Forward/Delegate)
Parameter setting
Task Completion
Ad-hoc Customization
(Forward/Delegate)
Task Notification
and Completion
Workflow Scenarios
Structured
LOB
Applications
Out-of-the-Box
Ad Hoc
Office Server Features Routing & Approval
Solutions List Moderation Review
Publishing Process Approval
(with customization) Document Expiration Signature collection
Windows Workflow Foundation
Visual Designer
Key Concepts
Workflows are a set of activities
Activities are the building blocks A Workflow
Workflows run within a Host Process:
Any application or server An Activity
Developers can build their own
Custom Activity Libraries Custom Activity Library
Components Windows
Base Activity Library: Out-of-box Workflow Foundation
activities and base for custom activities
Runtime Engine: Workflow execution Base Activity Library
and state management
Runtime Engine
Runtime Services: Hosting flexibility
and communication Runtime Services
Visual Designer: Graphical
and code-based construction Host Process
Type of workflow
กระบวนการทางาน (Activities) ทีต
่ อ
่ เนือ
่ ง
จัดกลุม
่ ได ้เป็ น 2 รุปแบบของ workflow ด ้วยกัน…
Forms Forms
Auto-generated Forms Designed Forms
-ASPX -InfoPath
-ASPX
Deployment
Workflow authored live against Deployment
server Solutions package generated
Runtime compilation Box administrator installable
Workflow Authoring Modes
Markup Only Markup and Code Only Application
“Declarative” Code Generated
App creates activity
XAML XAML C#/VB C#/VB tree and serializes
Workflow Compiler
wfc.exe
.NET assembly
C#/VB Compiler • ctor defines
workflow
Business Processes And
Workflow Models
Business Process Workflow Model
Control Flow Processes Sequential Workflow
Well understood sequence of
A1
events
Sequential in nature A2 A3
S4
Workflow
Designer
Building a simple workflow
Windows SharePoint Services
Document Document
Library 1 Library N
SQL Server
...
Site 1 Site 2 … Site N
List 1 List N
Item A Item A Windows Server 2003
...
Item B Item B
Windows SharePoint Services
Item C Item C
... ...
Internet Information Services
Associations
Feedback Received
Making a Technology Choice
• VS2005 Designer for Windows • Office SharePoint Designer
Workflow Foundation
– No code behind; workflow
– Code-behind file enables rules file declaratively
developer to write custom
encapsulates business logic
Microsoft Visual C# or
Microsoft Visual Basic code to instead
express business logic – Must use activities provided
– Can author custom activities – No step-by-step debugging
for inclusion in workflows available
– Visual Studio debugging – Can author only sequential
available workflows
– Can author both sequential
and state workflows
Resources
– Download the Microsoft .NET Framework 3.0
– http://www.microsoft.com/downloads/details.aspx?familyid=10CC340B-F857-
4A14-83F5-25634C3BF043&displaylang=en
– Download the Microsoft VS 2005 Extensions for WWF
– http://www.microsoft.com/downloads/details.aspx?familyid=5D61409E-1FA3-
48CF-8023-E8F38E709BA6&displaylang=en
– Download the Microsoft® Windows® SDK Kit for Windows Vista™ and .NET
Framework 3.0 Runtime Components
– http://www.microsoft.com/downloads/details.aspx?familyid=7614FE22-8A64-
4DFB-AA0C-DB53035F40A0&displaylang=en
– Download the Windows SharePoint Services 3.0
– http://www.microsoft.com/downloads/details.aspx?familyid=D51730B5-48FC-
4CA2-B454-8DC2CAF93951&displaylang=en
– Download the Windows SharePoint Services 3.0 SDK
– http://www.microsoft.com/downloads/details.aspx?FamilyID=1c64af62-c2e9-
4ca3-a2a0-7d4319980011&DisplayLang=en
– Download samples, tools, and runtime service components
– http://wf.netfx3.com/
© 2006 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.