Windows Workflow Foundation 4 and ASP.NET MVC

青春壹個敷衍的年華 提交于 2019-12-20 08:26:23

问题


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:

  • 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, ...)?

回答1:


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

Integrating a persisted WF4.0 workflow with mvc




回答2:


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

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.



来源:https://stackoverflow.com/questions/5336279/windows-workflow-foundation-4-and-asp-net-mvc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!