locked
Tracing RuleEngine/RuleExecution?

    Question

  • Hi,

    Is there any way to Trace all the information, inside the RuleEngine. Like to know, how the execution is taking place. Which rules is firing first, what is the result. Later which rule is firing, and their outcomes. etc..

    which will be helpfull for me while creating rules, and debugging them.

    I have used:

    <system.diagnostics>
        <switches>
          <add name="System.Workflow.Activities.Rules" value="All"/>
          <add name="System.Workflow LogToFile" value="1"/>
        </switches>
      </system.diagnostics>

    in my web.config file. But I didnt notice any log files in obj/debug directory.

    Thnks

     

    • Moved by Kenny Tian - MSFTModerator Friday, September 17, 2010 9:10 AM Moving to the 3.0/3.5 forum since RuleEngine is a 3.0/3.5 feature (From:.NET 4: Windows Workflow Foundation)
    Wednesday, September 15, 2010 4:30 PM

Answers

  •   <system.diagnostics>
        <switches>
          <add name="System.Workflow.Activities.Rules" value="Information"/>      
        </switches>
        <trace autoflush="true">
          <listeners>
            <add name="RuleLog" type="System.Diagnostics.TextWriterTraceListener"
                  initializeData="rulesapplied.log" />
          </listeners>
        </trace>
      </system.diagnostics>
    • Marked as answer by WMeher Friday, September 17, 2010 3:04 PM
    Friday, September 17, 2010 3:03 PM

All replies

  • Are you using an interop activity? If so, the standard 3.x tracking infrastructure isn't available- tracking data generated by the wrapped activity is exposed as an InteropTrackingRecord-
    Wednesday, September 15, 2010 6:01 PM
  • I am using RuleEngine by itself. Just created rules to XML file. And loading that XML file to RuleEngine. I am not using any interop activity.

    is above web.config code is good enough? or do I need to add any more code?

    Wednesday, September 15, 2010 6:06 PM
  • Any suggesions, please?
    Thursday, September 16, 2010 9:32 PM
  •   <system.diagnostics>
        <switches>
          <add name="System.Workflow.Activities.Rules" value="Information"/>      
        </switches>
        <trace autoflush="true">
          <listeners>
            <add name="RuleLog" type="System.Diagnostics.TextWriterTraceListener"
                  initializeData="rulesapplied.log" />
          </listeners>
        </trace>
      </system.diagnostics>
    • Marked as answer by WMeher Friday, September 17, 2010 3:04 PM
    Friday, September 17, 2010 3:03 PM