在任何恢复点启动持久工作流程
我正在尝试确定是否能够使用 Windows Workflow Foundation 4.0 来处理我们拥有的流程。我们有一个非常适合工作流程的流程。然而,我需要能够坚持下去,并可能在与坚持的地方不同的地方恢复。例如,用户将回答一系列问题。这些问题将被编号并分为几个部分(即1-5、6-10、11-15 等)。如果用户在回答整个问题部分之前决定退出,我需要保留该工作流程。当用户再次开始提问时,我需要从他们上次处理的部分的开头开始提问。假设他们回答了问题第二部分中的问题 8(# 的 6-10)。我需要让用户从问题 6 而不是问题 8(他们停止的地方)开始工作流程。每个问题都是一个活动。这是可能的吗?如果可以,如何实现?
I am trying to determine if I'm able to use Windows Workflow Foundation 4.0 to handle a process that we have. We have a process that is a very good candidate for a workflow. However, I need to be able to persist and possibly resume at a different point than where it was persisted at. For example, a user will be answering a series of questions. The questions will be numbered and separated into sections (i.e. 1-5, 6-10, 11-15, etc.). If the user decides to quit before the entire section of questions have been answered, I need to persist the workflow. When the user starts the questions again, I need to start them at the beginning of the section that they last worked on. Say they answered up to question 8 in the 2nd section of questions (#'s 6-10). I need to have the user start the workflow at question 6 instead of 8 (where they left off). Each question would be an activity. Is this something that is possible and if so, how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法从保存工作流状态的不同点恢复。但是,您不需要在每次活动后保存状态。因此,您只能在适合您的情况下保存状态,并中止您想要恢复的内存中的任何更改。
You can't resume from a different point than you saved the workflow state. However you are not required to save the state after every activity. So you can only save the state when it suits you and abort any changes in memory you want to revert.