I have been working with workflow in VS2008 quite a bit lately and I decided to try something new. There is a new sequential workflow type described as 'Sequential Workflow with definition expressed as Xaml and user code in a separate code file'. I found out that if you use this type, you have to write some extra code when creating rules or the the workflow will not compile. Your rules should look something like this.
((FullyQualifiedActivityTypeName)this.GetActivityByName("ActivityInstanceName")).PropertyName > 0
Also, I had some problems with Xaml file not keeping in sync with changes made to the activities. For example, if I desided to add a new property to an activity that was already on a workflow, the workflow would not pick up the new property. This problem remained even after I did a clean and rebuild. In the end. I closed down the environment, manually editted the .xoml file for the workflow an re-openned VS 2008 to solve the problem.
I would love to hear from others that have had simular issues and what resolutions you have found.
Comments