Implementing visual tracking
In this task, we will create a visual tracking participant. The tracking participant will let the workflow designer display the currently executing activity. When the workflow is executing, the currently executing activity is shown with a yellow outline and debug arrow.
Getting ready
Before we begin this task, we should have completed the previous task: Implementing XAML Workflow Tab and Run events.
How to do it...
- Open the workflow designer project:
Open the workflow designer project we created in the previous task.
- Create the VisualTracking participant:
Create a new code file named
VisualTracking.cs
and fill the file with the following code:using System; usingSystem.Collections.Generic; usingSystem.Activities.Tracking; ...
Get Microsoft Windows Workflow Foundation 4.0 Cookbook 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.