Sign In
Assorted Windows Workflow Foundation
My name is Tom Lake. I previously worked on the Windows Workflow Foundation Activities test team and created these blog posts and samples to help before the official samples were available.
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
ASP.NET
Custom Activity
Mesh
Workflow
XAML Activation
Archive
Archives
September 2008
(1)
December 2007
(1)
January 2007
(1)
October 2006
(1)
August 2006
(1)
July 2006
(3)
June 2006
(2)
May 2006
(7)
MSDN Blogs
>
Assorted Windows Workflow Foundation
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Assorted Windows Workflow Foundation
It is time for a change
Posted
over 4 years ago
by
Tom Lake
0
Comments
After 8 years working on BizTalk and Windows Workflow Foundation I have decided it is time to work on testing a new product. Starting yesterday I am now working on the Live Mesh team. I really enjoyed helping answer questions and putting together samples...
Assorted Windows Workflow Foundation
Are you getting a "The root activity type is invalid" error with the Custom Activity Designer sample?
Posted
over 5 years ago
by
Tom Lake
1
Comments
Several peolple have gotten a "The root activity type is invalid" error when using the Custom Activity Designer sample that can be found at http://wf.netfx3.com/files/folders/activity_behavior/entry840.aspx . I created an update project that should resolve...
Assorted Windows Workflow Foundation
State machine workflow web service example
Posted
over 5 years ago
by
Tom Lake
0
Comments
Being able to have a StateMachineWorkflow hold state across multiple different web service calls can be very useful. This example will show you how to get start. The first step is to create your interface. For this example I will be using the following...
Assorted Windows Workflow Foundation
How to use custom ActivityCondition or filter which ActivityConditions are available
Posted
over 6 years ago
by
Tom Lake
2
Comments
If you have your own custom ActivityCondition you are only going to be able to use it with your custom activities, not out of the box activities like While or IfElseBranch. First start by creating your custom ActivityCondition like the following: ...
Assorted Windows Workflow Foundation
Switch activity
Posted
over 6 years ago
by
Tom Lake
4
Comments
The Switch activity I created is based on the switch statement in C# or the Select Case statements in VB . You have an expression and one or more case statements, one of which can be the default. To model within workflow the case becomes a property that...
Assorted Windows Workflow Foundation
Basics of Working with Custom Types in Workflow
Posted
over 6 years ago
by
Tom Lake
7
Comments
If you have used a custom type for an activity / workflow property you have probably ran into a few issues. You might have had problems trying to get it serialized correctly or to be able to set the value in the property browser. With this post I will...
Assorted Windows Workflow Foundation
Do you want to invoke another workflow but you won't know which one until runtime?
Posted
over 6 years ago
by
Tom Lake
7
Comments
The InvokeWorkflowActivity that ships with WF requires you to set the type of the target workflow at design time. If you won’t know which workflow to invoke until runtime you need to write a custom activity. To invoke a workflow need to use the IStartWorkflow...
Assorted Windows Workflow Foundation
Do you need to launch another process from your workflow?
Posted
over 6 years ago
by
Tom Lake
1
Comments
When start another process from your workflow you can’t just not return from the Execute method until the process completes. This would block the entire workflow from receiving any other events and would hold onto the thread. Instead you need to use a...
Assorted Windows Workflow Foundation
How to set activity property from a custom input form
Posted
over 6 years ago
by
Tom Lake
1
Comments
Sometime you might want to create an input form for your user to set properties on your custom activity. Unfortunately when you set the properties directly on the activity from the input form the values don’t always get reflected on your activity. To...
Assorted Windows Workflow Foundation
How to send data to a workflow
Posted
over 6 years ago
by
Tom Lake
4
Comments
Sometimes you need to send data to a workflow from the host. To do this you need create an interface that is decorated with the ExternalDataExchange attribute and contains an event delegate like the following: [ ExternalDataExchange ] public...
Assorted Windows Workflow Foundation
Project template for XAML Activation Console Application
Posted
over 6 years ago
by
Tom Lake
1
Comments
If you work with XAML activation from time to time and like being able to debug your workflow using a console application you should install these templates. However, you don’t like having to modify the default console application template each time....
Assorted Windows Workflow Foundation
Examples of using Persistence and Tracking in ASP.NET
Posted
over 6 years ago
by
Tom Lake
6
Comments
When you are working with ASP.NET you may have the need to persistence and / or tracking. I have put together two examples, one with shared databases and the other with separate, and included the command scripts to create the databases for you. There...
Assorted Windows Workflow Foundation
Using XAML activation in ASP.NET with a StateMachineWorkflow
Posted
over 6 years ago
by
Tom Lake
3
Comments
If you want to use XAML activation in ASP.NET you will need to be using Windows Workflow Foundation Beta 2.2, that can be found here . The reason for this is that although XAML activation works in most cases with Beta 2 it isn’t officially supported in...
Assorted Windows Workflow Foundation
Couple of custom activities that you can use to synchronize branches of a ParallelActivity
Posted
over 6 years ago
by
Tom Lake
1
Comments
You could use a SynchronizationScope Activity, but this would block execution all together in the other branches since the thread is locked until the activity is done executing. If that is not the behavior you are looking for here are two options. First...
Assorted Windows Workflow Foundation
XAML activation and how to use it
Posted
over 6 years ago
by
Tom Lake
4
Comments
XAML activation is when you use the serialized xoml file to create and run a workflow instance. You will use one of the following WorkflowRuntime methods to create the workflow instance: public WorkflowInstance CreateWorkflow( XmlReader workflowDefinitionReader...
Assorted Windows Workflow Foundation
Sample of StateMachineWorkflow receiving events fired in ASP.NET
Posted
over 6 years ago
by
Tom Lake
1
Comments
If you are using a state machine workflow in ASP.NET you need to use the ManualSchedulerService. After the workflow is started or an event is fired to it you need to make a call to RunWorkflow. This allows the current thread to process the event, for...
Assorted Windows Workflow Foundation
Have you had problems using the FileWatcher sample in a StateMachineWorkflow or WhileActivity?
Posted
over 6 years ago
by
Tom Lake
2
Comments
If you have tried to use the FileWatcherActivity in either a WhileActivity or a StateMachineWorkflow you have probably not had much luck. The changes need to be made to the base activity InputActivity. To get it working in a while activity you need the...
Page 1 of 1 (17 items)