Find Data About Workflows?

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 6 months, 2 weeks ago.

  • Author
    Posts
  • #61461
    Profile photo of Andrea Pasutti
    Andrea Pasutti
    Participant

    I'm very new to PowerShell, but I have a good idea of what it can do and used it a little bit at my previous job. It's very powerful and I was wondering if I can use it to gather data about the workflows in use across the farm. Can I use PowerShell to do the following:

    1) Find the number of workflows running
    2) Find the number of instances per workflow
    3) Find the number of errors per workflow
    4) Find how long it takes for each workflow instance to run
    5) Determine the amount of resources each workflow instance consumes

  • #61543
    Profile photo of Don Jones
    Don Jones
    Keymaster

    Probably not. Workflows run under WWF, not PowerShell, and WWF isn't well instrumented for this. Keep in mind that a Workflow written in PowerShell is translated into the XAML used by WWF and then handed off; "monitoring" WWF isn't really within PowerShell's scope.

    WWF has some tracking and tracing functionality; I Googled "monitoring wwf .net" and you might see if any of those are helpful.

You must be logged in to reply to this topic.