Dec 9, 2008

Get the output from a workflow

The output of the workflow instance is can be obtained by the OutputParameters like the following.

_workflowRuntime.WorkflowCompleted
                += delegate(object sender, WorkflowCompletedEventArgs e)
                {
                    _result = (Double)e.OutputParameters["Result"];
                    _waitHandle.Set();
                };