Rehosting the Workflow Designer in WF4

Note: This blog post is written using the .NET framework 4.0 Beta 2 With Windows Workflow Foundation 3 it was possible to rehost the workflow designer in your own application. But possible is about all there was to say about it as it was pretty hard to do anything beyond the basics.   With Windows Workflow Foundation 4 live has become much better on the rehosting front [:)] In fact it is possible to create the fully functional and useful workflow editor below in about 200 lines of code. Now that is more like it!   The WorkflowDesigner The WorkflowDesigner … Continue reading Rehosting the Workflow Designer in WF4

Flowing transaction into a workflow using WF4

One of the things that wasn’t possible in Windows Workflow Foundation 3 was flowing transaction over a WCF service request into a workflow. We could have transactions on the client, we could have transactions on the server but they would not be able to cooperate. Fortunately that is one the problems that Windows Workflow Foundation 4 solves for us. [:)]   In WF4 we can use the ReceiveAndSendreply template to configure a workflow as a service and accept WCF calls. That works just fine but doesn’t allow for transactions. If we want to use transactions we need to add the … Continue reading Flowing transaction into a workflow using WF4

Online WF4 presentation recordings

The recordings from my recent online Windows Workflow Foundation 4 presentation have been posted online. Get them while they are hot [:)]   You can download the samples and PowerPoint from here.   Streaming: http://developmentor.s3.amazonaws.com/webcasts/Meet-The-New-Workflow-WF4-Maurice-de-Beijer-2009-12-01.wvx Video Download: http://developmentor.s3.amazonaws.com/webcasts/Meet-The-New-Workflow-WF4-Maurice-de-Beijer-2009-12-01.zip Video As WMV (used by streaming link): http://developmentor.s3.amazonaws.com/webcasts/Meet-The-New-Workflow-WF4-Maurice-de-Beijer-2009-12-01.wmv MP3 (iTunes Ready): http://developmentor.s3.amazonaws.com/webcasts/Meet-The-New-Workflow-WF4-Maurice-de-Beijer-2009-12-01.mp3 Download MP3 (iTunes Ready): http://developmentor.s3.amazonaws.com/webcasts/Meet-The-New-Workflow-WF4-Maurice-de-Beijer-2009-12-01-mp3only.zip   Enjoy! [f1] [f2]

Activity correlation using a RequestReplyCorrelationInitializer

Note: This blog post is written using the .NET framework 4.0 Beta 2   In my previous post about Windows Workflow Foundation 4 I used the CorrelationScope activity to arrange for the activity correlation between a Send and the related ReceiveReply activities. That is quite easy to do and personally I find things nice and easy to arrange with both messaging activities nested in the CorrelationScope activity . The default templates use a slightly different approach though and use a RequestReplyCorrelationInitializer. The end result is the same though so just use what you think best.   Just for comparison below … Continue reading Activity correlation using a RequestReplyCorrelationInitializer

Activity correlation in Windows Workflow Foundation 4

Note: This blog post is written using the .NET framework 4.0 Beta 2 There are two types of correlation to think about in Windows Workflow Foundation: Message correlation Basically sending multiple requests to the same workflow. Activity correlation Making sure two activities work together. In this post I am going to show activity correlation   Activity correlation is used when multiple activities form a single logical action. Think about the Send and ReceiveReply activities. Two distinct activities but they work together because the first, the Send activity, send a WCF request somewhere and the second, the ReceiveReply activity, receives the … Continue reading Activity correlation in Windows Workflow Foundation 4