News

My Stats

  • Posts - 26
  • Comments - 24
  • Trackbacks - 55

Twitter










Recent Comments


Recent Posts


Archives


Post Categories



This simulates an orchestration callrules action from code:
 
MyArrayList = new System.Collections.ArrayList();
MyPolicy = new Microsoft.RuleEngine.Policy(YourPolicyName);
MyTracer = new Microsoft.RuleEngine.DebugTrackingInterceptor();
 
You will have to create your facts in here. Use TypedXmlDocuments or custom objects (see the BizTalk help for samples)
 
MyArrayList.Add(MyFact1);
MyArrayList.Add(MyFact2);
MyPolicy.Execute(MyArrayList.ToArray(),MyTracer);
MyPolicy.Dispose();
System.Diagnostics.Trace.WriteLine(MyTracer.GetTraceOutput());
 
The above line will redirect the traces to the windows event trace.
Use the excellent debugview utility from sysinternals to view the traces.

posted @ Tuesday, October 05, 2004 5:16 AM | Filed Under [ BizTalk - EAI - B2B ]

Comments

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: