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?
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
2010-01-15 16:20:56
isn't that related to WorkflowInstanceQuery? i didn't digged that deep in wf4...
Rubens Farias
2010-01-15 16:35:07
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
2010-01-15 17:36:14
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
2010-01-18 17:05:50