BizTalk Server General - Business Rule Engine - return boolean from a policy

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > December 2004 > Business Rule Engine - return boolean from a policy





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Business Rule Engine - return boolean from a policy
Raj

2004-12-07, 5:49 pm

Hi,
Iam new to Business Rules world..This is what Iam trying to do...
1. Define a set of business rules under a policy containing all my business
validation conditions
2. Pass the input Xml document and exexcute the policy from an orchestration
3. Get an boolean back if anyone of the rule fails
4. Also i need to terminate the policy execution even if one rule fails at
that point and return with a false boolean
I know 1,2 can be done but not quite sure about how to achieve 3 and 4..Any
help would be much appreciated
Thanks
Raj
Matt Milner

2004-12-08, 2:46 am

In order to get a boolean back, you need to pass one in. This involves
passing in a .net class or xml document that has boolean property/attribute
that can be set by the business rule actions. You can then examine this
class/document after your rules execute. Essentially, you have another Fact
for your policy, it just happens to be one that will get set by the policy
and not one the policy is examining.

In terms of terminating the policy, there should be a built in Halt function
in the existing vocabularies that you can put in your action/then of a rule
if it fails. you'll want to do this after setting your boolean fact to
false however.

Matt
http://www.m3technologypartners.com/blogs/


"Raj" <Raj@discussions.microsoft.com> wrote in message
news:273729AD-0B16-444E-A437-F4A51B2BC2F6@microsoft.com...
> Hi,
> Iam new to Business Rules world..This is what Iam trying to do...
> 1. Define a set of business rules under a policy containing all my
> business
> validation conditions
> 2. Pass the input Xml document and exexcute the policy from an
> orchestration
> 3. Get an boolean back if anyone of the rule fails
> 4. Also i need to terminate the policy execution even if one rule fails at
> that point and return with a false boolean
> I know 1,2 can be done but not quite sure about how to achieve 3 and
> 4..Any
> help would be much appreciated
> Thanks
> Raj



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com