开发者

"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?

It's for a single sample on which I've to display every ste开发者_StackOverflowp with a "next" button.

Thank you very much!


I think that you are looking for the new Bookmarks concept in 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

It is a very good introuduction to WF 4.0. Hope it helps!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜