The Windows Workflow Foundation SDK includes a sample application called Workflow Monitor. Workflow Monitor uses the Workflow Designer control to visually display the execution status of a workflow.

In this screencast, Moustafa Ahmed (Program Manager on the Windows Workflow Foundation team), gives a demo of the Workflow Monitor tool that will be included as a sample in the SDK for Windows Workflow Foundation Beta 2.

What other kinds of queries will you be able to make with beta 2 ?
The query you make to get some activity property value, you get the data also from the tracking service? So you save state data into the tracking service? The tracking service SQL database changes in beta 2?

Yes, we save the data in the SqlTrackingService's database. We've done so in Beta1 as well. By default we will only track workflow events, activity execution status event and user track point. If you can change your default tracking profile (DefaultTrackingProfile
table) or supply a profile for type (TrackingProfile table) and we'll save what you decided to track based on your tracking profile.

In Beta2 we plan to add Query APIs layer atop of the out of box SqlTrackingService. As you've seen in the screencast, you can use those APIs to find workflows by execution status, activities from within your workflow and their activity execution status history,
and activity properties' values that you decided to track. There are other capabilities that are being finalized now. Certainly, if you have more needs that are not satisfied by this query layer, you can always go directly and query your database.

Very very interesting!!!!
My question is about the possibility to customize the activity shape on the basis of its status. For example I'd like to set the rectangle activity background color to yellow while it's in running state, and to green when is completed. In the demonstration
instead I see that to distinguish a running activity a small green arrow is shown on the wv designer. Can you give me some additional info?

I think that workflow designer host has one big drawback. I don't understand why do you need to have access to workflow assembly in order to draw the activities . I think that markup serialized representation such as one existing in SqlTracking database
should be enough to display workflow, and it will enable remote monitoring scenarious .

The workflow assemblies need to be discoverable by the process calling the SqlTrackingQuery APIs. In your case, and per the error message, please make sure that the HostingWorkflowRuntime assembly and its dependencies are either GAC'ed or in the same directory
as the WorkflowMonitor.exe. Hope this helps.

Remove this comment

Remove this thread

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums, or
Contact Us and let us know.