[WF4]Use CancellationScope Activity

As we know that parallel will not finish execution until all its child branches finished. Sometimes, we want to break the parallel if one of its branch finished execution and cancel other branches. To do this, we can use CancellationScope activity. In this sample, we want to order products from two ... [More]

[WF4;DotNet]Use TypeConverter

TypeConverter will be used in WF4. this sample demonstrate how to use TypeConverter in imperative code. Main Program: Person Class: Converter: Result: For more info about TypeConverter and TypeDescriptor please check these links: http://msdn.microsoft.com/en-us/library/system.componentmodel.... [More]

[WF4]Use Bookmark

We can use InArgument to pass values to workflow when an activity start executing, and use OutArgument to pass values out from an activity when it is finished. Check this. Now, we want to pass values to an activity when it IS executing. we can use bookmark to handle this job. My custom ReadLine... [More]

[WF4]Arguments In WF4

Problem: How to pass parameters into workflow when started. How to pass result out when workflow finished. Solution: Use Arguments 1. InArgument Sample: Project Structure: Activity: Host: Result:   2.OutArgument Sample: Project Structure ActivityWithOutArgument: ... [More]