Workflow 4 and soap faults

Image by ponChiang via Flickr Note: This blog post is written using the .NET framework 4.0 RC 1   Using the ReceiveAndSendReply activity template and the WorkflowServiceHost it is easy to create a workflow service. Other applications can communicate with the workflow just as if it is a regular WCF service, they never need to know the difference. Most of the configuration is quite straightforward. Select the Receive activity and configure it and do the same with the SendReply activity. Most the settings normally done using a ServiceContract or an OperationContract are there. But what about faults? Turns out there … Continue reading Workflow 4 and soap faults

Loading XAML Workflows in WF4

Note: This blog post is written using the .NET framework 4.0 RC 1   Most of the time I used compiled workflows in Windows Workflow Foundation 4. Its nice and easy, you design the workflow, compile it and at runtime there is a .NET type you use to create and run workflows. The main drawback is that this approach isn’t very flexible, sometimes you want to be able to change your workflow definition at runtime or store it in a database so recompiling isn’t an option. Fortunately we can also load a workflow from the XAML file itself and execute … Continue reading Loading XAML Workflows in WF4

Error handling in a NativeActivity

Note: This blog post is written using the .NET framework 4.0 RC 1 Using Workflow Foundation 4 the NativeActivity is the powerhouse when it comes to building native activities. One of its many capabilities is around error handling. Every so often I run into one of these things where things don’t quite work the way I expect them to and this is one of these cases.   The basics of error handling when scheduling child activities. Whenever a NativeActivity is executed it is passed an instance of the NativeActivityContext which it can use to schedule other activities using the ScheduleActivity() … Continue reading Error handling in a NativeActivity