Chapter 5 Quick Reference

To

Do This

Create the workflow tracking database

After creating a new database for the task, execute the SQL scripts you find in the <%WINDIR%>\Microsoft.NET\Framework\v3.0\Windows Workflow Foundation\SQL\EN directory within SQL Server Management Studio Express. You’ll need to execute both the Tracking_Schema.sql script and the Tracking_Logic.sql script.

Use the SqlTrackingService

After creating an instance of WorkflowRuntime but before you call its StartRuntime method, add a new instance of SqlTrackingService to the runtime services using WorkflowRuntime.AddService.

Filter tracked events to limit the number and type of events to be tracked

Create a TrackingProfile object (or the equivalent XML), adding included and excluded ...

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.