使用 Receive 活动定义无效的双向操作
如何配置工作流程以公开双向 void 操作?
这样:
1) 调用者被阻塞,直到操作完成并且
2)调用者收到异常(故障)通知
使用Receive
+ SendReply
似乎很笨拙。其一,它给工作流程图添加了不必要的噪音。
How do I configure a workflow to expose a two-way void operation?
So that:
1) caller is blocked until operation completes and
2) caller is notified on exceptions (faults)
Using Receive
+ SendReply
seems clunky. For one it adds unnecessary noise to the workflow diagram.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Receive 和 SendReply 对正是这样做的。我同意它给您的工作流程增加了很多不必要的复杂性。避免这种情况的最佳方法是创建一个单独的复合活动并将 Receive 和 SendReply 包装在其中。这样您就可以在工作流程中看到简单的复合活动。
The Receive and SendReply pair is exactly how it is done. I agree that it adds a lot of unwanted complexity to you workflow. The best way to avoid that is to create a separate composite activity and wrap the Receive and SendReply in there. That way you see the simple composite activity on your workflow.