Question

I am developing a State Machine Workflow using C# and WF in visual studio 2008. On one of my states I need to wait for multiple events to happen until the workflow can transition to the next state. As an example think of a unanimous voting scenario. I cannot find a way to do this. Does anyone have a solution or workaround for this problem?

Was it helpful?

Solution

A much more elegant solution would be to use the ParallelActivity: http://spellcoder.com/blogs/bashmohandes/archive/2006/10/02/690.aspx

OTHER TIPS

You can have multiple event driven activities within a state, so you could have handlers for each of the events you have and then set local booleans to track which has been executed successfully. After each, you could check the values and determine if you need to make a state change.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top