Search code examples
.net-3.5workflow-foundationsequential-workflow

What is the equivalent for try-finally block in workflow foundation?


There is a specific activity I want to execute even after exception has thrown, just like a try{}finally{} block.

Is it possible in sequential workflow using WF v3.5?


Solution

  • In WF3 there is no such thing, that is something they added in WF4 though.

    In Wf3 you would need to add a fault handler, execute your activity and use the ThrowActivity to throw the exception again.