Exposing Multiple Service Receives using Pick activity

I am constructing a WF4 workflow that needs more than one method. I am using the pick activity so each receive can activate the workflow, and do it's work in any order, (like a normal WCF service functions). However, every time I call either one of the web service, both triggers end up being called regardless of what method I call (both methods have the same signature).

Should I be using something besides the pick activity to accomplish this? Perhaps a parallel activity?


Parallel activity is the best if you would have x different messaging activities and you would want all of them to be called, but in no particular order.

Hmm...did you say that both methods have the same signature and they are in pick activity ? Why do you have 2 methods then ? you should have a Receive activity before pick and then have a rule to go to specific branch based on parameters from Receive call.

Hope it helps.

链接地址: http://www.djcxy.com/p/95854.html

上一篇: 使用代码库/探测路径在不同路径上组装Workflow Foundation 4

下一篇: 使用Pick活动显示多个服务接收