Determining Workflow Instance Status
Interestingly, if you look at the methods and properties of both the workflow runtime object and the workflow instance object, you don’t find a status property. How do you know if there is a workflow executing, and if there is one, where is that workflow in its process? Is it idled? Is it executing? How do we know?
I’m jumping ahead a little, but this is the most logical place to discuss workflow status determination. As it happens, the workflow definition of a given workflow instance provides you with the execution status. The base class Activity exposes an ExecutionStatus property that sports a member of the ActivityExecutionStatus enumeration. I’ve listed the ActivityExecutionStatus values with their meaning ...
Get Microsoft® Windows® Workflow Foundation Step by Step now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.