在任何恢复点启动持久工作流程

发布于 2024-11-16 15:46:19 字数 317 浏览 2 评论 0原文

我正在尝试确定是否能够使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故乡的云 2024-11-23 15:46:19

您无法从保存工作流状态的不同点恢复。但是,您不需要在每次活动后保存状态。因此,您只能在适合您的情况下保存状态,并中止您想要恢复的内存中的任何更改。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文