Is it possible to transition between states until multiple events happen in wf?

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

+1


source to share


2 answers


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



+1


source


A state can trigger multiple event driven events, so you can have handlers for each of the events you have, and then set up local booleans to keep track of those that succeeded. After each one, you can check the values ​​and determine if the state needs to be changed.



+1


source







All Articles