WF 4.0 What is different from 3.X

Published Wed, May 20 2009 1:37 PM

I’m playing with WF 4.0 at the moment and made a list what’s changed compared with WF 3.X.
Some features were already known since the PDC but I’m trying to create a nice overview list.

I will change this post as I play further with it.

  1. WF 4.0 is completely rewritten. So you can’t upgrade your WF 3.X workflows to WF 4.0. All activities and the runtime is new. Some activities are familiar but there are many new ones.
  2. You can still use your WF 3.X custom activities. This can be done via the new Interop activity.
  3. StateMachine workflows do not exists anymore. Only Seqential and a new type called FlowChart.
  4. Code and XAML based workflows are possible, but code based workflows do not have a designer.
  5. It’s possible to Unit Test Activities (workflows are activities too)
  6. Activities doesn’t have to be executed via a workflow. Activities can be executed in code also. Which makes reuse of activities more interesting.
  7. Not possible to make properties on your workflow. Instead of this there are variables and arguments now. Variables represent the storage of data. Arguments represent the flow of data into and out of an activity. Variables have a scope. The activity selected provides the scope. There are 2 new views in Visual Studio to manage the variables and arguments.
  8. On all kinds of activities, expressions are possible. Like the if statement on a If Activity. Expressions are program statements, a string value or .NET code. This expressions are written in VB!. This means capitalization does not matter, comparison is performed using a single equals sign instead of “==”, and the Boolean operators are the words "and" and "or" instead of the symbols "&&" and "||".
  9. ExceptionHandling is not arranged through a separate designer anymore. There is a TryCatch activity now. (which has a finally also)
  10. The parallel activity is truly executing parallel now
  11. Correlation can be setup with your own identifier (content based correlation)

 

Much more to come…

Update:
Part 2 continues the list

Comments

# La Web de Programación said on Tuesday, May 26, 2009 8:02 PM

Service Pack 2 para Windows Vista y Windows 2008 disponible públicamente : Versión 32 bits y versión

# Pascal Naber said on Wednesday, May 27, 2009 1:13 PM

Some more facts about WF 4.0. Part 1 can be found here There is no rule engine anymore! Workflows have

# Pascal Naber said on Wednesday, May 27, 2009 1:54 PM

Some more facts about WF 4.0. Part 1 can be found here There is no rule engine anymore! Workflows have

# raffaeu said on Sunday, January 24, 2010 10:10 PM

This simply sucks! We are not talking about moving from WinForm to WPF but to 'upgrade' an existing tool, WF. In this Microsoft did a big mistake, can you imagine big companies, like mine, that has spent time in separating the business logic using WF 3.5 that now have to redesign from scratch everything? Really bad. I think that I won't migrate to it for at least the next 12 months ... really really bad.

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Please add 4 and 1 and type the answer here: