views:

494

answers:

2

I'm working with the Beta 2 version of Visual Studio 2010 to get some advanced learning using WF4. I've been working with the SqlTracking Sample in the WF_WCF_Samples SDK, and have gotten a pretty good understanding of how to emit and store tracking data in a SQL Database, but haven't seen anything on how to query the data when needed. Does anyone know if there are any .Net classes that are to be used for querying the tracking data, and if so are there any known samples, tutorials, or articles that describe how to query the tracking data?

A: 

These can help:

Rubens Farias
Thanks for the post, but I guess I'm confused. It looks to me that the links above are all samples of how to emit the tracking data and then store it somewhere (like a database or the event log). I'm looking for a mechanism to query the data after it has been stored. In .Net 3.5 we used the the SqlTrackingQuery and it's TryGetWorkflow() method to do this. That is the sort of thing I'm trying to find -- a mechanism to query the stored data. Maybe that isn't included in WF4, and I might have to write my own queries.
Russ Clark
isn't that related to WorkflowInstanceQuery? i didn't digged that deep in wf4...
Rubens Farias
It may be, I can't figure it out for sure because of the limited amount of documentation, but at the very least, that class is used in the tracking profile to emit tracking records, which can then be used by the TrackingParticipant to store them somewhere. It may, or may not be used also to query the tracking records once they are stored -- like I said, it's hard to tell because of the lack of documentation.
Russ Clark
A: 

According to Matt Winkler, from the Microsoft WF4 Team, there isn't any built in API for querying the tracking data, the developer must write his/her own.

Russ Clark