SqlTrackingQuery Sample

Link. January 23, 2006. Comments [0]. Posted in: WinFX | Workflow

Beta 2 of Windows Workflow Foundation includes the new SqlTrackingQuery class (in the System.Workflow.Runtime.Tracking namespace), which allows you to query the tracking records in a SQL Server database inserted by the SqlTrackingService service.

I've written a simple Windows Forms Application that illustrates how to use this basic API and displays the resulting information (well, part of it, as it can be quite a bit) on a simple databinding-based UI. Here's a screenshot:

Something to keep in mind in using this API is that calling SqlTrackingQuery.GetWorkflows() or SqlTrackingQuery.TryGetWorkflow() will attempt to load the original assemblies that defined the workflows for which instances were found in the tracking database. To handle this, the sample simply handles the AppDomain.ResolveAssembly event and provides the user with a simple UI to select the necessary assembly:

You can download the sample here.



Comments are closed.

Syndicate

About

Tomas Restrepo is a software developer located in Colombia, South America. His interests include .NET, Connected Systems, PowerShell and lately dynamic programming languages. More...

tomasrestrepo @ twitter My Flickr photostream My saved links on delicious My Technorati Profile

email: tomas@winterdom.com
msn: tomasr@passport.com

View my profile on LinkedIn

MVP logo

Ads


Categories

Statistics

Total Posts: 1051
This Year: 2
This Month: 2
This Week: 1
Comments: 827

Archive

Other

Copyright © 2002-2008, Tomas Restrepo.

Powered by: newtelligence dasBlog 2.2.8279.16125

Sign In