如何在重新托管的 WF Designer 中跟踪 Windows Workflow 4?
我需要显示工作流程的当前状态。为此,我开发了一个程序,它重新托管工作流程设计器并显示我的工作流程。好的——这是最简单的部分。
接下来,我需要防止工作流程中的任何编辑。我找到了以下解决方案,效果完美:
var readOnlyState = WorkflowDesigner.Context.Items.GetValue<ReadOnlyState>();
if (readOnlyState != null)
readOnlyState.IsReadOnly = true;
但是如何直观地跟踪我的工作流程?我还需要使用额外的元信息(例如它们当前的状态或计数)来丰富/增强所有活动。
有谁知道如何插入叠加层或任何其他类型的视觉元素来显示活动的附加信息?
谢谢
-戈尔格
I need to show the current state of a workflow. For that purpose I have developed a programm which is rehosting the Workflow Designer and show my workflow. Ok - that was the easy part.
Next, I need to prevent any editing in the workflow. I found the following solution for that, which work perfect:
var readOnlyState = WorkflowDesigner.Context.Items.GetValue<ReadOnlyState>();
if (readOnlyState != null)
readOnlyState.IsReadOnly = true;
But how do I visually trace my workflow? And I also need to enrich/augment all activities with additional meta information (like their current status or a count).
Has anyone an idea how I could insert an overlay or any other kind of visual element to show additional information for an activity?
Thanks
-Goerge
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Kushal Shah 提供了一个 VisualWorkflowTrackingWithStepService 示例,可以帮助您入门。 Yoi 可以在此处找到示例。
此这是 Kushal 的另一篇博客文章,您可能想看一下,
There is a sample VisualWorkflowTrackingWithStepService from Kushal Shah that should help you get started. Yoi can find the sample here.
This is another of Kushal's blog post you might want to take a look at,