1

Each receive activity has its own correlation, yet I still got the error.

Here is a brief description of the workflow.

Main workflow: Process -> Receive(StartProcess), create instance & generate PID as correlation -> ParallelForEach, taskID 1 to 10, run(Task Workflow) -> Complete

Task workflow: InitCorrelation(PID, taskID) -> Receive(CheckReady) -> Complete.

When the workflow starts, I will keep getting this error:

System.InvalidOperationException: A bookmark with the name 'CheckReady|{SPOC}ITaskMgmt' already exists.

I am under the impression that as long as the correlation is set correctly, this should work. Any ideas?

Thanks!

4

1 回答 1

0

这似乎是预期的行为。

要解决此问题,工作流不会在 ParallelForEach 中运行同一活动的多个实例,而是启动另一个工作流的多个实例。因此,不再需要 ParallelForEach,因为单个工作流实例可以并行运行。

于 2013-06-28T03:01:39.920 回答