WF4中的工作流服务-如何找出可以调用哪些操作? [英] Workflow Services in WF4 - how to find out which operations can be invoked?

查看:110
本文介绍了WF4中的工作流服务-如何找出可以调用哪些操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


推荐答案

奈杰尔,
不幸的是,我们没有办法在WF 4.0上做到这一点.而且我不知道您是否确实支持在WF 3.5中实现此功能的方式,因为我们不保证队列名称在将来的版本中将保持不变.最接近的结果可能是在WorkflowServiceInstance上使用反射来找到书签列表(进入实例并不容易),或者如果实例被持久化,则可以在数据库中查找(但数据可能是陈旧的).另一种可能是闲置时进行跟踪,但是它不提供任何书签信息.

继续并发布示例代码...也许这将有助于找出WF 4.0的解决方法.

-艾米
Hi Nigel,
Unfortunately we don't have a way to do this with WF 4.0. And I don't know if the way you are implementing this in WF 3.5 is actually supported because we don't guarantee that the queue names will remain the same in future releases. The closest you could come would be to either use reflection on WorkflowServiceInstance to find the list of bookmarks (getting to the instance is not straightforward) or if the instance is persisted you can look in the database (but the data may be stale). Another possibility would be to hook into tracking at idle but that doesn’t provide any bookmark information.

Go ahead and post your sample code...perhaps it will help to figure outa workaround for WF 4.0.

-Amy


这篇关于WF4中的工作流服务-如何找出可以调用哪些操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆