Question reg. Parallel activity in workflow
Currently I see the parallel activity in WF 4.0 get completed either both the branches are completed or a certain condition is met but the activity I'm looking for should behave like this if any of the branch is comple开发者_如何学编程ted the control has to transfer to the following activity without cancelling the other branch activity. Is there any activity in WF 4.0 should satisfy this need? or I have to create a custom activity for this purpose?
There is no activity that does this. The Parallel waits for all banches to complete or the CompletionCondition return true but then other branches a canceled as you describe.
What should happen to the other branches when the first is finished? They are scheduled so you have to do something with them or the scheduler will not see the "Parallel" activity as finished. That remains true even if you create your own activity.
精彩评论