在WF4中重用Receive / SendReply(Reusing Receive/SendReply in WF4)
如何在WF(4)中重用Receive / SendReply? 例如
Receive/SendReply (Start) Process data Decision (data is valid?) True Pick 1) Receive/SendReply (Confirm) 2) Receive/SendReply (Input data) 3) Receive/SendReply (Restart) False Pick 1) Receive/SendReply (Input data) 2) Receive/SendReply (Restart)应该可以调用Input data并Restart两个不同的Pick 。
目前我正在使用WF 4,但我想知道4.5是否有更简单的解决方案。
How can Receive/SendReply be reused in WF (4)? E.g
Receive/SendReply (Start) Process data Decision (data is valid?) True Pick 1) Receive/SendReply (Confirm) 2) Receive/SendReply (Input data) 3) Receive/SendReply (Restart) False Pick 1) Receive/SendReply (Input data) 2) Receive/SendReply (Restart)It should be possible to call Input data and Restart in two different Picks.
Currently I'm using WF 4, but I'd like to hear if 4.5 has a simpler solution.
最满意答案
只需创建一个自定义复合活动,并将Receive / SendReply对添加到该活动中,并在多个位置重用该自定义活动。 自发布以来,这一直是WF4的基本重用机制。
Just create a custom composite activity and add the Receive/SendReply pair to that and reuse the that custom activity in multiple places. This has been the basic reuse mechanism in WF4 since its release.
更多推荐
发布评论