asp.net-mvc Windows 工作流基础 4 和 ASP.NET MVC

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5336279/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 01:00:33  来源:igfitidea点击:

Windows Workflow Foundation 4 and ASP.NET MVC

asp.net-mvcasp.net-mvc-3asp.net-mvc-4workflow-foundation-4

提问by slfan

We are evaluating Windows Workflow Foundation 4 to use in MVC 3 based Web Applications. We would like to create flexible order workflows for different projects.
Does anybody know good information about the general architecture or hands-on-labs for this kind of application?
Some concrete questions would be:

我们正在评估在基于 MVC 3 的 Web 应用程序中使用的 Windows Workflow Foundation 4。我们希望为不同的项目创建灵活的订单工作流程。
有没有人知道有关此类应用程序的通用架构或动手实验的好信息?
一些具体的问题是:

  • how can you activate a specific controller/action from the workflow?
  • what is the best way to communicate between the workflow and the web application (events, wcf services, ...)?
  • 如何从工作流中激活特定的控制器/动作?
  • 在工作流和 Web 应用程序(事件、wcf 服务等)之间进行通信的最佳方式是什么?

采纳答案by gyurisc

This is a nice article on how to start working with WF4 in your ASP.NET MVC app.

这是一篇关于如何在 ASP.NET MVC 应用程序中开始使用 WF4 的好文章。

Integrating a persisted WF4.0 workflow with mvc

将持久化的 WF4.0 工作流与 mvc 集成

回答by Rakesh Guranani

Another example with video is at below link. (Note: The code attached in the link might not be executable, but it will give some concepts when you study the code and watch the video)

另一个视频示例在下面的链接中。(注:链接中的代码可能无法执行,但在学习代码和观看视频时会给出一些概念)

https://channel9.msdn.com/Shows/Workflow-TV/endpointtv-WF4-in-the-Real-World-Microsoft-Support-ASPNET-MVC-Wizard-Framework

https://channel9.msdn.com/Shows/Workflow-TV/endpointtv-WF4-in-the-Real-World-Microsoft-Support-ASPNET-MVC-Wizard-Framework

This link is showing how we can preserve the data between requests using tempdata. Since it is a large explanation, I am not repeating the same again here.

此链接显示了我们如何使用 tempdata 保留请求之间的数据。由于是大篇幅的解释,这里不再赘述。