RuleExecution vs RuleEngine RRS feed

  • Question

  • Hey,

    I am using the WF Rules externally to Workflow.

    I can't find a post that explains what the difference is between using System.Workflow.Activities.Rules.RuleEngine and calling RuleExecution on a RuleSet directly. Why load the RuleEngine if I can just do something like (the following code is a snippet only)?



                RuleValidation validation = new RuleValidation(test.GetType(), null);

                RuleExecution execution = new RuleExecution(validation, test);


     Thanks heaps.




    Tuesday, November 24, 2009 6:10 AM


  • There is no functional difference.  The RuleEngine class provides a performance improvement if you are executing the same RuleSet multiple times.
    Jurgen Willis - MSFT
    Tuesday, November 24, 2009 6:53 AM