Last post Sep 23, 2010 08:56 PM by mchinta
Sep 16, 2010 08:57 AM|mchinta|LINK
I have a XML file with rules. (used in workflows). If I execute that XML file using Workflow Rule Engine, it is taking lot of time.
So I wonder, Can i execute the XML file with C#? convert that file to regular C# code in runtime? and execute it without RuleEngine.
Is there any possibility?
Sep 20, 2010 04:32 AM|Qin Dian Tang - MSFT|LINK
No more researching for this part. Hope this help:
Sep 20, 2010 09:34 AM|mchinta|LINK
Thanks Qin Dian Tang,
RuleValidation validation = new RuleValidation(typeof(Person), null);
RuleExecution execution = new RuleExecution(validation, Person);
ruleSet.Execute(execution);I have done the same thing. Executing XML file using ruleSet.Execute(execution).Using ruleSet.Execute taking lot of time, so I asked can we execute the rules with RuleEngine(i.e.ruleSet.Execute(execution)).If I can execute without that, I guess my processing would be much faster.Thanks again! Let me know, if you come thru any of this situation.
Sep 22, 2010 09:57 PM|Qin Dian Tang - MSFT|LINK
I suggest you can post the issue in this forum:
Sep 23, 2010 11:29 AM|cts-mimran|LINK
No, it's not possible to execute ruleset without rule engine.
Sep 23, 2010 05:20 PM|mchinta|LINK
Yes zafar, you are right.
Can you provide me some solution to how to deal with this scenario?
Sep 23, 2010 05:48 PM|cts-mimran|LINK
Have you tried these fixes?
I don't mean to say, it's going to be your solution since it's more for designer but one of them deals with ruleset. So, please give it a shot and let me know if this helps.
Sep 23, 2010 06:05 PM|cts-mimran|LINK
Sep 23, 2010 08:56 PM|mchinta|LINK
But Im using WF 4.0, Visual studio 2010