Search code examples
workflow-foundation-4

Workflow lifecycle?


I am looking for a document/diagram that shows states a workflow goes through (Idle, Complete, Aborted, Deleted, Unloaded, Unhandled Exception)

Yes, I lmgtfy'd it already.


Solution

  • Workflow goes through various states depending on whether you're using persistence service or not. For a diagram you can have a look at: http://blogs.msdn.com/b/moustafa/archive/2006/03/02/542459.aspx The only thing that has been missed in the article is when a workflow is cancelled. The only difference between Cancel and Terminate is that terminating workflow requires a reason whereas canceling it does not require one.

    enter image description here