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!

有帮助吗?

解决方案

It seems that this is the expected behavior.

To resolve this issue, instead of running multiple instances of the same activity within ParallelForEach, the workflow starts multiple instances of anther workflow. Therefore, ParallelForEach is no longer need, since individual workflow instances can run in parallel.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top