Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Biztalk
|
Biztalk General discussion about Biztalk server.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Biztalk section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 30th, 2004, 08:06 AM
Registered User
 
Join Date: Sep 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default BizTalk 2004 Business Rule Engine

Q1:can i expose Rules set(or Policies in BizTalk terminology) as web service that can be consumed by .NET (web/windows) application?

Q2:can i get an output from executing certain business rule?

In many cases, the flow of a process depends on the output of execution of certain business rule(s), and the type of this output maybe not be just Boolean, but it can be calculated value(s) or even a string that can be returned back to the caller of the rule.


In BizTalk Business rule engine, we understood that the "Then" part of rules is always an action that execute some commands or calls to a .NET code, and we couldn't figure out how we can return an output to the caller of the rule whether it was BizTalk "Call Rules" shape or .NET code (if possible).

 
Old October 21st, 2004, 08:24 PM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Q1: yes, you can call the policies directly from any .NET host -- or use the rule shape in an orchestration. Executing the policies using your own code gives you much finer control.

Q2: you can call your own methods in the <IF> section and return values as needed. The trick is that anything you do inside the <IF> must evaluate as a boolean. You can do something like this in your condition: YourClass.FuncReturnsBool(YourClass.SomeOtherFuncC alculatesVal(Facts.SomeFact)).
Also, if your calculated value is part of a fact, you can update the value and update/reassert the object. This will cause all rules to be evaluated again for the current request and allows forward chaining of rules.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Biztalk Server Rule development query Hariharan Anbarasu Biztalk 0 December 6th, 2007 12:19 PM
Set based operations in Biztalk rule server pacman56 Biztalk 1 April 12th, 2006 07:37 AM
Biztalk server 2004 schanda Biztalk 1 March 3rd, 2006 11:23 AM
Query regarding BizTalk 2004 debsoft Biztalk 0 August 2nd, 2005 12:53 AM
BTS 2002 - business rule in Orchestration pjconrad Biztalk 0 August 3rd, 2004 09:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.