Logic in Decide Shape
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 > Logic in Decide Shape




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

    Logic in Decide Shape  
Namshub


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


 
12-02-05 12:48 PM

I'm not sure how you write the C# type logic predicates and the ones I have
tried don't seem to work.

I have 2 variables a StatusValue and a EventType.

I want the True statement to fire if the Status is not equal to 0 execept
when the EventType is "D" (this would put all failures except "D" event
types into a failed Queue)
how would i write this?    I know you use the !=  the & or the &&  i'm not
sure which logic predicates to use









[ Post a follow-up to this message ]



    RE: Logic in Decide Shape  
Samuel L


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


 
12-02-05 10:51 PM

Hi Namshub!

If I interpret your description correctly this is the way you should write
the logic:

StatusValue != 0 && EventType != "D"

This expression will evaluate to true exactly when
Status is not 0 AND Event is not D

This means that if status = 0 then this expression will be false
It also means that if Event = D then this expression will be false

Hope this was what you intended!?!
Please let me know if something is unclear!

Good luck!






[ Post a follow-up to this message ]



    Re: Logic in Decide Shape  
Namshub


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


 
12-02-05 10:51 PM

Thanks, i thought so, it looks like my assumed logic for
StatusValue = xpath(PasOut,"string(@StatusValue)");   does not actually
render the correct value from this document.

<?xml version="1.0" encoding="utf-16"?>
<PASData StatusValue="0" StatusDescription="SUCCESS">
<PASTransaction>
<TransactionDate>20051129</TransactionDate>
<TransactionID>32109</TransactionID>
<Event>PMIA</Event>
<EventType>A</EventType>
<TransactionTime>121408</TransactionTime>

So now i've got to figure out how to get this value....

"Samuel L" <SamuelL@discussions.microsoft.com> wrote in message
news:1370AE30-1C2C-46D2-8510-DEE18224F326@microsoft.com...
> Hi Namshub!
>
> If I interpret your description correctly this is the way you should write
> the logic:
>
> StatusValue != 0 && EventType != "D"
>
> This expression will evaluate to true exactly when
> Status is not 0 AND Event is not D
>
> This means that if status = 0 then this expression will be false
> It also means that if Event = D then this expression will be false
>
> Hope this was what you intended!?!
> Please let me know if something is unclear!
>
> Good luck!
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:30 AM.      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