将用户名与持久性存储中的工作流程相关联?
我是 WF 的新手,我正在尝试使用几个 WF“向导”构建一个 asp.net MVC 网站。所有用户都将使用表单身份验证登录。用户将拥有许多不同的 WF 工作流程,他们可以在稍后启动、返回和完成。我添加了一个 SQL 持久性存储来存储迄今为止有效的工作流程的状态。然而,在我看来,您需要知道工作流程的指南才能重新加载并继续。
有没有一种方法可以将用户用户名添加到持久性中,以便我可以列出用户当前活动的工作流程,以便他们可以继续他们中断的地方?每个用户可以同时拥有多个活动工作流程。
Im new to WF and i'm trying to build an asp.net MVC web site with several WF "wizards". All users will be logged in using forms authentication. The users will have many different WF workflows they can start and come back and finish at a later date. I've added an SQL persistence store to store the state of the workflow which works so far. However it seems to me you need to know the guid of the workflow in order to reload it and carry on.
Is there a way i can add the users username to the persistence so that i could list the users currently active work flows so they can carry on where they left off? Each user could have several active work flows at any one time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
持久性存储支持持久性 IO 参与者,它可以提供要随工作流一起持久保存的值。代码有点棘手,但有可用的示例,只需查找 PersistenceIOParticipant。
The persistence store supports Persistence IO Participants which can supply values to be persisted along with the workflow. The code is a little tricky but there are samples available, just look for PersistenceIOParticipant.