Windows Workflow Foundation (WF4) - Exploring State Machine

This sample application demonstrates how the WF4 State Machine activity schedules child activities.

C# (1.7 MB)
 
 
 
 
 
4.9 Star
(8)
3,591 times
Add to favorites
8/16/2011
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Going back to a state
    1 Posts | Last post December 12, 2012
    • What if I want to go back to state1 after I triggered state3?  When I try to I get this error, Failed to resume bookmark State1.
  • How To cancel schedualed trigger
    2 Posts | Last post July 19, 2012
    • if i call operation on a trigger in a transition, that its not the current state of the wf item, the call will be some how schedualed till the wf item will hit this state and then it will run. 
      
      what if i want to cancel this call ? or throw an exception if i am calling operation on worng state ( not the current state of the wf item).
      
      consider the case calling "Lock" on already Locked item, the call wont happen until the wf item is unlocked and then this will happen, how can i control this?
      
      Thanks.
    • Hi Wasim - I did some testing and I believe you found a bug with WorkflowServices and StateMachine unfortunately I don't know of a workaround but I'm looking into it.