Host BizTalk Rules Engine in my own application?

Hello all,

I was wondering whether it is possible to host the BT Rules Engine in my own application, meaning, not in a BT host process. I know with WF you can do that to execute RuleSets outside of a workflow, but the WF RE is too limited for me. I need the RETE features from BT. On the web I couldn't find any comments or instructions on that.

If it's possible, does anybody know what the licensing implications would be? The system in large that the BT RE-hosting application would belong to is built on BizTalk but for this particular case I'd like to host the BT RE in an external process.

Thanks a lot, Christoph

[653 byte] By [ChristophWienands] at [2008-2-27]
# 1

I think I found the answer to Question 2:

http://download.microsoft.com/download/e/6/f/e6fcf394-e03e-4e15-bd80-8c1c127e88e7/LicensingFAQ.doc#_Toc65494433

Since the process would be running server on the server anyway, licensing shouldn't be an issue. Now I only gotta figure out how to host the RE, which brings me back to my original posting. So if anybody knows of code samples or so, I'd be very thankful :-)

Christoph

ChristophWienands at 2007-9-26 > top of Msdn Tech,BizTalk Server,BizTalk R2 General...
# 2

Put Microsoft.RuleEngine and Policy into your favorite search engine and you'll find lots of examples.

Basically you create a Policy object - passing in the name of the deployed policy, and potentially the version (version is optional - if not passed you get the most recently deployed version).

You call Policy.Execute passing in an object Array of all your facts. If you have Xml facts - wrap them in TypedXmlDocument - there are Typed* wrappers for database objects as well.

JonFlanders at 2007-9-26 > top of Msdn Tech,BizTalk Server,BizTalk R2 General...