简体   繁体   中英

Windows Workflow Foundation 3 wait inside parallel activity

I have a workflow where the order of execution for the activities is:

  • codeActivity1

  • codeActivity2

  • codeActivity3

  • codeActivity4

  • codeActivity5

  • codeActivity6

  • codeActivity8

  • codeActivity7

The rule which wwf uses is obviously that activities of each branch get executed in turns. This is ok for me for most of my activities with one exception: I have one activity in the first branch that needs to execute before the activities of second branch. I know I can just put the activities of the second branch before this one activity, but that would make my existing workflows harder to understand. Each branch has activities which work on some areas of my application.

I am looking for some kind of "waiting activity" that does not execute until some condition is met. The important part is that id does not pause the current thread, because that would not allow the activities of the first branch to continue.

在此处输入图片说明

如果我正确理解,我将使用While活动或ConditionedActivityGroup活动,它们可以等到满足某些条件后再继续。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM