This project is read-only.

What's purpose of the CorrelationID

Mar 3, 2014 at 1:12 PM
Hi sshown,
I am reading your code, one thing I am confused is the "CorrelationID" property of the approveTask, does that means that FlowTasks only can run 5 workflow at same time? or I am wrong?

Thanks you in advance

Mar 3, 2014 at 10:29 PM
Hi Jacob,

There is no limitation on the number of workflows you can run at the same time in FlowTasks.

CorrelationId is used when you want to execute an activity in parallel with other activities. Unfortunately WF4 generate the bookmark name like: ServiceContractName + OperationName. So you cannot use the same OperationName in a parallel activity because the bookmark name will not be unique and WF4 will be confused on which activity to send/receive messages.

FlowTasks will suffix the CorrelationId to the OperationName so that the final bookmark name is unique.
Mar 4, 2014 at 1:27 AM
I see thanks!