TechNet
Products
IT Resources
Downloads
Training
Support
Products
Windows
Windows Server
System Center
Microsoft Edge
Office
Office 365
Exchange Server
SQL Server
SharePoint Products
Skype for Business
See all products »
Resources
Channel 9 Video
Evaluation Center
Learning Resources
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Script Center
Server and Tools Blogs
TechNet Blogs
TechNet Flash Newsletter
TechNet Gallery
TechNet Library
TechNet Magazine
TechNet Wiki
Windows Sysinternals
Virtual Labs
Solutions
Networking
Cloud and Datacenter
Security
Virtualization
Updates
Service Packs
Security Bulletins
Windows Update
Trials
Windows Server 2016
System Center 2016
Windows 10 Enterprise
SQL Server 2016
See all trials »
Related Sites
Microsoft Download Center
Microsoft Evaluation Center
Drivers
Windows Sysinternals
TechNet Gallery
Training
Expert-led, virtual classes
Training Catalog
Class Locator
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
Microsoft Official Courses On-Demand
Certifications
Certification overview
Special offers
MCSE Cloud Platform and Infrastructure
MCSE: Mobility
MCSE: Data Management and Analytics
MCSE Productivity
Other resources
Microsoft Events
Exam Replay
Born To Learn blog
Find technical communities in your area
Azure training
Official Practice Tests
Support options
For business
For developers
For IT professionals
For technical support
Support offerings
More support
Microsoft Premier Online
TechNet Forums
MSDN Forums
Security Bulletins & Advisories
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
Sign in
Home
Library
Wiki
Learn
Gallery
Downloads
Support
Forums
Blogs
Resources For IT Professionals
United States (English)
Россия (Pусский)
中国(简体中文)
Brasil (Português)
Skip to locale bar
Post an article
Translate this page
Powered by
Microsoft® Translator
Wikis - Page Details
First published by
Hani Khoshdel-Nikkhoo
When:
13 Jul 2012 6:04 PM
Last revision by
Ed Price - MSFT
(Microsoft)
When:
4 Oct 2013 7:25 PM
Revisions:
58
Comments:
1
Options
Subscribe to Article (RSS)
Share this
Engage!
Wiki Ninjas Blog
(
Announcements
)
Wiki Ninjas on Twitter
TechNet Wiki Discussion Forum
Can You Improve This Article?
Positively!
Click Sign In to add the tip, solution, correction or comment that will help other users.
Report inappropriate content using
these instructions
.
Wiki
>
TechNet Articles
>
Windows Workflow (WF) 4.x Samples
Windows Workflow (WF) 4.x Samples
Article
History
Windows Workflow (WF) 4.x Samples
Please note that .NET 4.5 is an in-place update to .NET 4.0. Therefore, all the WF 4 samples mentioned below work on the 4.5 runtime.
WF 4.5 Samples
Getting Started
Windows Workflow Foundation (WF45) Getting Started Tutorial
Contract-First
Contract-First Authoring of a Workflow Service
Dynamic Update
An Introduction to Dynamic Update in Windows Workflow
An Introduction to Custom Activity Participation in Dynamic Update
An Introduction to Implementation Maps in Dynamic Update of Windows Workflows
WorkflowIdentity
Version Mismatch with WorkflowIdentity
Loading the Right Workflow Using WorkflowIdentity
Side-by-Side Versioning
Side-by-Side Hosting of Two Versions of a Workflow Using WorkflowServiceHost
Hosting Side-by-Side Versions of a Workflow Service via XCOPY Deployment
Workflow Designer
Support of WF 4.5 Designer Improvements in Rehosted Scenarios
LINQ
How to use LINQ in a Workflow
Miscellaneous
WF4.5 Developer Preview - C# Expression, Workflow Versioning and Dynamic Update
WF 4.0 Samples
You can download the official WF 4.0 Samples from
here
.
These WF Samples have been categorized as following:
Application
DocumentApprovalProcess
HiringRequestProcess
PurchaseProcess
SuspendedInstanceManagement
Basic
Built-InActivities
CancelationScope
Collection
DynamicActivity
EmulatingBreakInWhile
FlowChartWithFaultHandling
InteropWith35RuleSet
InvokeMethod
Pick
Procedurals
Switch
Compensation
BasicCompensableActivity
CompensationCancellation
Confirmation
CustomCompensation
CustomActivities
Code-Bodied
Composite
CustomActivityDesigners
Designer
IActivityToolboxService
ProgrammingModelItemTree
PropertyGridExtensibility
ViewStateCleaningWriter
DesignerRehosting
Execution
ControllingWorkflowApplications
CreatingWorkflowInstances
CreationEndpoint
ManagementEndpoint
ResumeBookmarkEndpoint
WorkflowInvoker
Expressions
Migration
ExternalDataExchange
SimpleInterop
Persistence
BuiltInConfiguration
InstancePersistence
PersistenceParticipants (in the samples
folder
, look under WF\Basic\Persistence\PersistenceParticipants)
PropertyPromotionActivity
SQLStoreExtensibility
Rules
IfElseWithRules
Simple Policy
Advanced Policy
Order Processing with Policy
SimpleCAG
Services
AbsoluteDelay
BufferedReceive
ChannelCache
ContentBasedCorrelation
DurableDelay
DurableDelayXamlx
DurableDuplex
Faults
Formatter
ImplicitExplicitCorrelation
SendReceiveParameters
XAMLActivation
XAMLService
Tracking
CustomTracking
EtwTracking
ExtractWFData
SqlTracking
TextFileTracking
Transactions
NestedTransactionScope
TransactedReceiveScope
TRSComposability (in the samples
folder
, look under WF\Basic\Transactions\TRSComposability)
Validation
ActivityRelationships
BasicValidation
ExternalActivityValidation
OverloadGroups
Scenario
ActivityLibrary
CommentOut
DbActivities
EntityActivities
For
GetWorkflowInstanceId
LINQ
LINQ to Objects Activity
LINQ to SQL
NonGenericForEach
NonGenericParallelForEach
NoPersistScope
PowerShell
RangeEnumeration
Regex
Rules-ExternalizedPolicy4
Rules-Policy4
SendMail
SwitchRange
ThrottledParallelForEach
WaitForInput
Compensation
ExternalRuleSetToolkit
Services
AccessingOperationContext
AsynchronousCommunication
CorrelatedCalculator
LinqMessageQueryCorrelation
OperationScope
SecuringWorkflowService
StateMachineWithPick
Transactions
ImperativeTransaction
SuppressTransactionScope
TransactedConvoyScope
TransactedQueues
TransactionRollback
Validation (in the samples
folder
, look under WF\Scenario\Validation)
WPFWFIntegration
Here are a few more samples in addition to the official WF 4 samples:
State Machine
Introduction to State Machine Hands On Lab
Exploring State Machine
Tracking State Machine
Tracking State Machine Workflow Service
ASP.NET and WF
ASP.NET MVC4 Workflow Enabled User Registration
Using Workflow with ASP.NET MVC 4 AsyncController
Using Workflow with ASP.NET MVC 3
ASP.NET MVC2 Wizard Activity Sample
How to use Workflow from ASP.NET
WPF and WF
How to use Workflow from WPF
Silverlight and WF
Silverlight / State Machine Workflow Service
LINQ and WF
Using LINQ Queries in Workflow
Unit Testing
Microsoft.Activities.UnitTesting - How do I test an Activity?
Microsoft.Activities.UnitTesting - How do I test an activity with bookmarks?
Microsoft.Activities.UnitTesting - How do I test a Workflow Service?
Mocking WF4 Workflow Activities with Microsoft.Activities.UnitTesting
Debugging
Three Rules Simple for Better Debugging with WorkflowApplication
WCF Workflow Service
WCF / WF Service Fault and Validation Example
Workflow Service Repository Example
Workflow Services and Auto-Start
WorkflowService Trace Behavior Sample
Windows Server AppFabric / Workflow Services Demo - Contoso HR
Miscellaneous
How To Invoke a Child Workflow as XAML
Custom Activity Designer
Workflow Arguments Example
Parallel and ParallelFor Behavior
Collection Activities Example
Execution Properties Sample
Role Based Security for Workflow Services
Optional InArgument
Activity Callbacks and Event Handlers
XAML Activity Spoofing
Activity State Sample
Using Arrays in Workflow
Initialize Variables with Configuration
Rules Samples
Rule Driven Pageflow / Workflow
Rules Driven User Interface (UI)
Rules Driven User Interface (UI) With Traces (WF Rules Engine)
Custom Rule Actions
Creating Rules Using the Rules Object Model (OM)
Rules with Collection (WF Rules Engine)
Rule Set Analyzer (WF Rules Engine)
Processing XML Documents with the WF Rules Engine
Policy From File (WF Rules Engine)
Custom Rule Expressions