简体   繁体   English

在.NET 4中“挂起”工作流程?

[英]“Suspend” a workflow in .NET 4?

I've to do a small test application, I want to suspend the application. 我必须做一个小型测试应用程序,我想暂停该应用程序。

I saw there is a "SuspendActivity" but I can't find it in .Net 4.0, so how I'm supposed to pause my workflow and resume it from my application? 我看到有一个“ SuspendActivity”,但在.Net 4.0中找不到,所以应该如何暂停工作流程并从应用程序中恢复它?

It's for a single sample on which I've to display every step with a "next" button. 它是针对单个样本的,我必须在该样本上使用“下一步”按钮显示每个步骤。

Thank you very much! 非常感谢你!

I think that you are looking for the new Bookmarks concept in WF 4.0. 我认为您正在寻找WF 4.0中的新“ 书签”概念。 Basically, you can create a custom activity that defines a bookmark, and when the workflow execution reaches this activity, the execution is suspended until you resume the bookmark. 基本上,您可以创建一个定义书签的自定义活动,当工作流程执行到该活动时,该执行将被挂起,直到您恢复书签为止。

Take a look into the section Additional activity concepts in A Developer's Introduction to Windows Workflow Foundation (WF) in .NET 4 查看“ .NET 4中开发人员对Windows Workflow Foundation(WF)的介绍”中的“ 其他活动概念 ”部分。

It is a very good introuduction to WF 4.0. 这是对WF 4.0的很好的介绍。 Hope it helps! 希望能帮助到你!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM