Windows Workflow Foundation (WF4) - Introduction to State Machine Hands On Lab

In this lab, you will learn how to build workflows using Windows Workflow Foundation (WF4) and the State Machine activity. 

C# (1.1 MB)
4.7 Star
15,233 times
Add to favorites
E-mail Twitter Digg Facebook
Sign in to ask a question

  • What am I missing, besides the tutorial?
    1 Posts | Last post August 20, 2013
    • Where is the setup.msi file?  A lot seems to be missing from the download above.  Others seem to have overcome this major hurdle, so what am I missing??
  • Using StateMachines with MVC
    1 Posts | Last post June 10, 2013
    • Hi Jacobs,
      Nice tutorial, I am thinking about to use State Machine in ASP.Net with MVC frame work, is it advisable? since ASP.Net page could run in stateless mode. I need your advice in this regard. Thanks
  • .NET 4.5 Fix
    1 Posts | Last post December 15, 2012
    • Building this solution in VS2012 .Net 4.5 gives error:
      Extension ‘Microsoft.Activities.Build.BeforeInitializeComponentExtension’ threw an exception of type ‘System.IO.PathTooLongException’ :  ‘The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.’. <location project>
      The solution is to change the directory in which the solution is located to something much shorter.
      Change "Windows Workflow Foundation (WF4) - Introduction to State Machine Hands On Lab" folder to "StateMachineLab"
      Thanks for this excellent intro to WF!
  • A bug in Excersize 2?
    1 Posts | Last post August 23, 2012
    • Hello,
      I belive there is an error in Excersize 2 (you can check End solution). After I press Invalid Card, and then Remove Card, I have to press Power off twice to power Atm off.
  • error on running the application
    2 Posts | Last post June 04, 2012
    • I downloaded and ran the sample code and got the following:
      The values provided for the root activity's arguments did not satisfy the root activity's requirements:
      'AtmActivity': The following keys from the input dictionary do not map to arguments and must be removed: Settings.  Please note that argument names are case sensitive.
      Parameter name: rootArgumentValues
    • Which exercise?  Begin or End solution?
  • XamlParseException was unhandled
    5 Posts | Last post April 13, 2012
    • Hi Ron, I have been enjoyed the presentations you put here. I finished the 'Introduction to WF4 Hands On Lab', which was great for me to understand the WF4 basics. Currently, I am doing the 'Introduction to State Machine Hands On Lab' exercise 1. I finished the exercise by following your video. It seems very straight forward. I successfully ran the test without any issue to get it passed. However, when I tried to run the application through either Start Debugging/Start Without debugging, I ran into an exception which seems related to some binding issue shown as below. Any idea why it is happening? I tried to load up the exercise End solution and go the issue.
      Thanks in advance,
      'The invocation of the constructor on type 'AtmStateMatchine.WPF.MainWindow' that matches the specified binding constraints threw an exception.' Line number '3' and line position '9'.
    • Seen the same problem with exercise 1. And the WPF project 'End' solution of exercise 1 is referecing the AtmStateMachine.Activities of the begin solution. After fixing that, the 'End' solution will run.
    • Adding a reference to Microsoft.Activities.UnitTesting (found in Referenced Assemblies) resolved the "binding constraints" error for me.
    • Marc's solution also worked for me.
    • Sorry about that - I fixed the lab files.
  • AssertState does not exist
    3 Posts | Last post December 18, 2011
    • Hi Ron,
      Apologies if a basic question, but downloaded latest and used the Exercise1\Begin .sln and am getting - The name 'AssertState' does not exist in the current context in the AtmMachineTests.cs file. Think I've installed all pre-reqs, the Microsoft.Activities classes don't seem to have it anywhere and there's not attribute decoration or recognisable static method. Am I missing something?
      Also, latest download seems to contain a reference to a TFS connection which I guess you've used for development. Not that it's an issue, more unexpected in accordance with the lab videos.
    • Just to add a little more, so as not to confuse on entry below, I have downloaded the latest from the link above. Thanks
    • Lab is updated - please try again.
  • AssertState does not exist
    2 Posts | Last post December 18, 2011
    • Hi Ron
      I am facing the same issue as Nedster657. I have download the lab on Friday 17th Dec 2011.
      I would also like to mention that I am finding your labs of WF very useful.
    • Ok - I found the problem - I've uploaded a new version of the labs that should work for you.  
  • Having Trouble with AssertState.OccursInOrder
    3 Posts | Last post December 14, 2011
    • Hi Ron,
      I'm working through this lab and I'm having trouble with the Test project.  The AssertState.OccursInOrder comes up as a does not exist in current context error.  I've tried several workarounds but nothing seems to solve it.  I tried using the  AssertHelper.OccursInOrder, but I then get an error that says that it cannot infer the type arguments from the usage.  
      Am I missing something in the configuration? 
      Thanks for your help!
    • Sorry about that - I'm checking on this.  I'll post a reply soon.
    • Found a problem with my build system - I've fixed it and created a new release - labs updated also - thanks for the heads up!
  • WF4 State Machine can support parallel?
    1 Posts | Last post November 26, 2011
    • WF4 State Machine can support parallel?
      or Flowchart support  parallel?Thanks!
1 - 10 of 17 Items