无法从 WF 4.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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来错误消息很清楚地说明了原因,因为它指出其他工作流程已中止。我认为这是由于未处理的异常造成的,因此下一步是调试该工作流程并找出导致其中止的问题。
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.