locked
Workflowinvoker completed event RRS feed

  • Question

  • I am using WorkFlowInvoker to invoke my WorkFlow and I am uisng InvokeAsync; I want to catch event wher I can see that WorkFlowInvoker has completed execution of WorkFlow. I also want to find out whether there was any fault in the WorkFlow and throw Exception out of Activity and want to catch it...

     

    How can I do this ?

    Monday, April 4, 2011 2:21 PM

Answers

  • If you want to run async, I think maybe you should look at using WorkflowApplication instead of WorkflowInvoker. It has Completed and UnhandledException events that you can register for.
    Tim
    Monday, April 4, 2011 9:17 PM
  • This topic has an example of a workflow invoked asynchronously using WorkflowInvoker.InvokeAsync: http://msdn.microsoft.com/en-us/library/dd465919.aspx

    The InvokerCompleted handler is notified when the workflow is completed, and within there you can get out arguments and also exception or cancellation information.

    Does that work for you?

     Steve Danielson [Microsoft]
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm

    Tuesday, April 5, 2011 12:20 PM

All replies

  • If you want to run async, I think maybe you should look at using WorkflowApplication instead of WorkflowInvoker. It has Completed and UnhandledException events that you can register for.
    Tim
    Monday, April 4, 2011 9:17 PM
  • This topic has an example of a workflow invoked asynchronously using WorkflowInvoker.InvokeAsync: http://msdn.microsoft.com/en-us/library/dd465919.aspx

    The InvokerCompleted handler is notified when the workflow is completed, and within there you can get out arguments and also exception or cancellation information.

    Does that work for you?

     Steve Danielson [Microsoft]
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm

    Tuesday, April 5, 2011 12:20 PM