Business Rules Question
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Business Rules Question




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Business Rules Question  
Chris


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-11-05 10:53 PM

I need to determine if a particular value in an XML element is NOT in a
table in our SQL Server Database.

In this case, I need to determine if a profit center is in our database, and
if it isn't, I need to set an XML element value to "false."

The business rule I created looks like the following:

IF
NOT
AND
XREFTable.PROFIT_CENTER_ID is equal to
[namespace]./Invoice/ProfitCenter
XREFTable.CLIENT_ID is equal to 'PRL300'


THEN
[namespace]./Invoice/ProfitCenterValid = 'False'


When I test this rule, the rules engine locks up on me.   Is there something
I am unaware of?

Chris









[ Post a follow-up to this message ]



    Re: Business Rules Question  
Matt Milner


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-11-05 10:53 PM

Use SQLProfiler to check the SQL that is getting run. If I remember right,
the NOT operator does not work like you think it will with this type of
check against SQL.  I had to do some work around to check this by
encapsulating the check in a .Net class.  I think this is the same type of
thing I was doing, but not sure.

matt


"Chris" <cahale@shellopus.com> wrote in message
news:OsrNT0C%23EHA.3120@TK2MSFTNGP12.phx.gbl...
>I need to determine if a particular value in an XML element is NOT in a
> table in our SQL Server Database.
>
> In this case, I need to determine if a profit center is in our database,
> and
> if it isn't, I need to set an XML element value to "false."
>
> The business rule I created looks like the following:
>
> IF
>   NOT
>       AND
>            XREFTable.PROFIT_CENTER_ID is equal to
> [namespace]./Invoice/ProfitCenter
>            XREFTable.CLIENT_ID is equal to 'PRL300'
>
>
> THEN
>     [namespace]./Invoice/ProfitCenterValid = 'False'
>
>
> When I test this rule, the rules engine locks up on me.   Is there
> something
> I am unaware of?
>
> Chris
>
>
>
>







[ Post a follow-up to this message ]



    Re: Business Rules Question  
Chris


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-12-05 10:53 PM

So you created a .NET Class method that made the call to the database
instead of the rules engine making the call?

Chris

"Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message
news:OoLkTWD%23EHA.3472@TK2MSFTNGP14.phx.gbl...
> Use SQLProfiler to check the SQL that is getting run. If I remember right,
> the NOT operator does not work like you think it will with this type of
> check against SQL.  I had to do some work around to check this by
> encapsulating the check in a .Net class.  I think this is the same type of
> thing I was doing, but not sure.
>
> matt
>
>
> "Chris" <cahale@shellopus.com> wrote in message
> news:OsrNT0C%23EHA.3120@TK2MSFTNGP12.phx.gbl... 
>
>







[ Post a follow-up to this message ]



    Re: Business Rules Question  
Matt Milner


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-13-05 01:46 AM

Correct.  We created a method that took in the id and returned an indicator
as to whether it existed.  I think we did some caching of the connection as
well but it has been a while.

matt


"Chris" <cahale@shellopus.com> wrote in message
news:%23Gv6GwL%23EHA.2112@TK2MSFTNGP10.phx.gbl...
> So you created a .NET Class method that made the call to the database
> instead of the rules engine making the call?
>
> Chris
>
> "Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message
> news:OoLkTWD%23EHA.3472@TK2MSFTNGP14.phx.gbl... 
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:31 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register