无法从 WF 4.0 中的工作流发送多个服务请求

发布于 2024-11-26 17:16:13 字数 431 浏览 0 评论 0原文

我有两个工作流在控制台应用程序中作为服务运行,并且从工作流 1 中,我通过 SendAndReceiveReply 活动对工作流 2 进行两次调用。另外,我使用 MessageCorrelation(通过传递 GUID)到工作流 2,因此来自工作流 1 的两个调用都定向到同一个工作流 2 实例。但问题是第一个调用成功,而第二个调用失败。如果我为每个调用传递不同的 GUID,则两个调用都会成功。

以下是例外情况,

System.ServiceModel.FaultException: The operation could not be performed because WorlflowInstance '82h238-23j2392-23293j..' was aborted.

已编辑:这两个调用是从并行活动的一个分支进行的,而另一个分支具有延迟活动。

I've two workflows running as services in console applications and from workflow-1 I'm making two calls to workflow-2 through SendAndReceiveReply activity. Also, I'm using MessageCorrelation (by passing a GUID) to the workflow-2 so both the two calls from the workflow-1 are directed to the same workflow-2 instance. But the problem is the first call is getting succeeded while the second one fails. If I pass different GUIDs for each call then both the calls get succeeded.

Here is the exception,

System.ServiceModel.FaultException: The operation could not be performed because WorlflowInstance '82h238-23j2392-23293j..' was aborted.

EDITED: The two calls are made from one branch of a parallel activity while the other branch has a delay activity.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我最亲爱的 2024-12-03 17:16:13

看起来错误消息很清楚地说明了原因,因为它指出其他工作流程已中止。我认为这是由于未处理的异常造成的,因此下一步是调试该工作流程并找出导致其中止的问题。

Looks like the error message is pretty clear about the cause as it states that the other workflow is aborted. I presume this is because of an unhanded exception so the next step would be to debug that workflow and find out what the problem is that causes it to abort.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文