Beispiel #1
0
        private void ExecuteRuleSet(System.Workflow.Activities.Rules.RuleSet ruleSet,
                                    RuleValidation rv,
                                    ref MSRuleSetExecutionResult ruleSetExecutionResult)
        {
            RuleExecution re = new RuleExecution(rv, _instanceOfObject);

            ruleSet.Execute(re);
            ruleSetExecutionResult.AddExecutionResult(ruleSet.Name, re);
        }
 private static void ExecuteRuleSet(RuleSet ruleSet, System.Workflow.ComponentModel.Activity root, ActivityExecutionContext executionContext)
 {
     RuleValidation validation = new RuleValidation(root.GetType(), null);
     RuleExecution execution = new RuleExecution(validation, root, executionContext);
     ruleSet.Execute(execution);
 }