WF Tracing
Thursday, August 9th, 2007Windows Workflow Foundation (http://msdn2.microsoft.com/en-us/netframework/aa663328.aspx) is a relatively new technology released in .NET 3.0 for modeling workflows and business processes.
I’ve recently been working with the rules engine and PolicyActivity in WF. I’ve found that you can log what’s going on with the rules engine with the following configuration in the configuration file:
<configuration>
<system.diagnostics>
<switches>
<add name=“System.Workflow.Activities.Rules“ value=“All“/>
<add name=“System.Workflow.LogToFile“ value=“1“/>
</switches>
</system.diagnostics>
</configuration>
However, it’s also possible to trace using any trace listeners registered with the Trace.Listeners collection using the following:
<configuration>
<system.diagnostics>
<switches>
<add name=“System.Workflow.Activities.Rules“ value=“All“/>
<add name=“System.Workflow.LogToTraceListeners“ value=“1“/>
</switches>
</system.diagnostics>
</configuration>
I mention this because in the context that I found it, I found almost no documentation on this. It’s probably more easily accessible than I think, but it’s here just in case. =)
Syndication