Search code examples
.networkflow-foundation-4

workflow 4 performance workflowinvoker


We have lots of workflow in our system.

We notice that using WorkflowInvoker.Invoke(myworkflow) was taking almost a 1 sec to execute. The workflow is a bit big, but in our test, it was doing nothing. myworkflow was build from the XAML with ActivityXamlServices.Load

Any suggestion in how to improve this?

Thanks,


Solution

  • Try caching the activity instance you pass to the invoker - http://www.neovolve.com/post/2010/07/23/Caching-workflow-activities-to-increase-performance.aspx