有没有办法检查 Windows 工作流中的顺序工作流?
状态机工作流具有 StateMachineWorkflowInstance 类,您可以使用它来检查工作流的当前状态、获取合法转换等... 对于顺序工作流程有类似的东西吗? 我希望有一种简单的方法来以编程方式找出工作流程当前所处的状态。
A state machine workflow has the StateMachineWorkflowInstance class that you can use to inspect the current state of the workflow, get legal transitions, etc...
Is there something like that for sequential workflows? I would like to have an easy way to programmaticaly find out what state the workflow is currently in.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
工作流程跟踪将为您提供有关顺序工作流程当前状态的大量信息。 如果需要,它甚至可以从工作流程中提取自定义数据并将其存储为跟踪数据的一部分。 默认情况下,它跟踪工作流本身及其内部所有活动的所有状态更改。
SqlTrackingQuery 对象有助于从数据库中获取跟踪数据,但编写自己的 SQL 查询也很简单。
http://wiki.windowsworkflowfoundation.eu/default.aspx/WF/SqlTrackingService。 html
Workflow tracking will five you a lot of information about the current state of your sequential workflow. It can even extract custom data from the workflow and store it as part of the tracking data if you want. By default it tracks all state changes for the workflow itself as well as all activities inside it.
The SqlTrackingQuery object helps in getting tracking data out of the database but it is straightforward to write your own SQL queries as well.
http://wiki.windowsworkflowfoundation.eu/default.aspx/WF/SqlTrackingService.html