Workflow Foundation 4 - 显示工作流程进度
在我们使用 WF4 的项目中,需要向用户显示工作流步骤的友好列表(从用户角度来看的逻辑步骤,而不是技术步骤)以及每个步骤的状态(如如果该步骤已完成,则有大的绿色复选标记)。
我想知道这是否应该使用工作流程跟踪。我读到的有关工作流程跟踪的印象是,它实际上更多地用于技术日志记录。
替代方案是在工作流程中或在工作流程之外保留步骤及其状态的有序列表。
不管怎样,我对它应该如何工作并很欣赏建议感到模糊。
In a project that we are using WF4, it is a requirement to show our users a friendly list of the steps of the workflow (the logical steps from the users point of view, not the technical steps) along with each step's status ( like a big green check mark if the step has been completed).
I'm wondering if this is something that Workflow tracking should be used for or not. My impression from what I have read about workflow tracking is that it is really more for technical logging.
The alternatives would be persisting an ordered list of steps and their statuses along with the workflow or outside of the workflow.
Either way I'm fuzzy about how this should work and appreciate suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
工作流服务会对您非常有用。这是 wf 和 wcf 之间的某种汇聚点,用于将 WCF 服务调用编组到 WF 实例。您可以创建双工通道并通过回调通道接收更新。
Workflow Services would be very useful for you. This is some sort of convergence point between wf and wcf and used to marshal WCF services calls to WF instances. You can create a duplex channel and receive updates via callback channel.
您可以使用工作流跟踪来注册活动执行并使用 WorkflowDesigner 向用户显示进度。 Microsoft 的 WF4 示例中有一个如何执行此操作的示例,您可以找到 这里。
You can use workflow tracking to register activity execution and use the WorkflowDesigner to show the progress to the user. There is an example of how to do this in the WF4 samples from Microsoft you can find here.