我想要一个工作流程,它可以从MSMQ接收多条相同的消息。
示例:
Receive: CreateWorkflow (CanCreateInstance=True)
Do Something...
Parallel (CompletionCondition=ExitParallel)
Parallel Branch 1
Receive: Update (CanCreateInstance=False, Use correlation)
Process...
Parallel Branch 2
Receive: Finish (CanCreateInstance=False, Use correlation)
Set ExitParallel=True
我希望我的工作流能够接收多条更新消息。但是,在此设置中,它只能接收1.根据this MSDN post,这应该可行,但我从来没有这样做。
解决方案是在并行分支1中放置无限循环吗?还有另一种方式吗?
答案 0 :(得分:1)
为了接收多条更新消息,您必须将该接收放入循环中。你现在设置它的方式是允许更新一次,并且Parallel只等待第二个分支,完成,完成。