40

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, ...)?
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
slfan
  • 8,950
  • 115
  • 65
  • 78
  • 5
    @Will: why did you close my question? It has been viewed by more than 1000 people and is favorite of a couple. For me the question is still open, because I'm looking for a good way to integrate MVC-Controllers into workflows. – slfan Oct 18 '11 at 09:52
  • 1
    Sorry, we try to discourage open ended questions like this. Also, it isn't *exactly* a question; its three. Its a list-type question asking for links (these types of questions aren't accepted here), a general question (no specific details, might be considered a "low quality" question), and another general question with a subjective slant to it. If you read the close reason below, you can see that it fits this question(s) well. If you want further clarification, please ask over on [meta]. Thanks. –  Oct 18 '11 at 11:12
  • 4
    @slfan: I agree! This is a very constructive ask! Just because it doesn't involve syntax doesn't mean it should be closed as not constructive. – genxgeek Jan 04 '12 at 20:06
  • @slfan: Just curious as to what you did integrate mvc3-wwf or if you chose a hybrid, other workflow/bpm, etc,? – genxgeek Jan 04 '12 at 20:30
  • we used our own implementation without using WF. At that time we didn't have enough knowledge and we didn't need all the features WF provides. I would still like to know more about WF. – slfan Jan 04 '12 at 21:00
  • 2
    shouldn't be closed - it's not open ended as it has concrete questions. – whitneyland Mar 18 '12 at 16:36
  • 1
    This question should be opened! – Robert Vuković May 05 '12 at 20:25
  • 2
    Absolutely hate the micromanagement of some of these posts- this is very much a useful question, don't get what purpose closing this served. – Kelly Robins May 11 '12 at 18:33

3 Answers3

25

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

gyurisc
  • 11,234
  • 16
  • 68
  • 102
4

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.

Rakesh Guranani
  • 523
  • 6
  • 15
1

Sadly, the videos for this seem to be down but the docs seem to try to show you a way!

Sourced from an old post/response from 2009. An alternative is found on CodeProject.com, which is also quoted on this one with a longer list of resources.

Phume
  • 55
  • 11