locked
Will the TerminateWorkflow activity calls finally? RRS feed

  • Question

  • I'm using .xamlx to build the work flow. 

    1>Inside the try-catch-finally block i have if condition and if the condition is true i call terminate workflow, in this case will the finally block executed?

    2>Do i need TerminateWorkflow inside Catch?

    Below the code represenation of .xamlx

     

    try
    {
       if (condition = = true)
       {
            TerminateWorkflow
       }
       else
       {
          // continue working
        }
    }
    catch(Exception ex)
    { 
       TerminateWorkflow // Do i need here inside catch again?
    }
    finally
    {
       // Dispose resources
    }
    


     

    Thursday, January 19, 2012 5:12 PM

Answers