Breaking a loop
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 > Breaking a loop




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

    Breaking a loop  
Competitive Dad


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


 
02-10-06 10:51 PM

I've got a Loop in my orchestration that has a decision in it also.

The decision is based on a boolean result from a  web service call.

If false, which means a message has not been received by a database, the
thing waits a minute, adds to a loop variable and loops. It does this 3 time
s.

If true it goes and gets the result. Problem is it is still in the loop so I
need to break out of it to continue on. I can set the loop variable I've
created in this decision branch so that it won't loop again, but that seems 
a
bit untidy.

Is there a better way of doing this?

Thanks,

Martin





[ Post a follow-up to this message ]



    RE: Breaking a loop  
MaurĂ­cio Ritter


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


 
02-10-06 10:51 PM

I think that setting the loop variable is the best option you have. Another
option is to put the loop inside a Scope shape with an Exception Handler to
ApplicationException. Inside the loop, when you want to stop processing, jus
t
throw an application exception (I still prefer the loop variable option).
--
MaurĂ_cio Ritter
MCP (Biztalk 2004), MCSD (VC++, VB, VB.NET), MCAD
MCSE (Win2000), MCDBA (SQL2000), MCT years 2002 to 2005
http://www.dotnetmaniacs.com.br


"Competitive Dad" wrote:

> I've got a Loop in my orchestration that has a decision in it also.
>
> The decision is based on a boolean result from a  web service call.
>
> If false, which means a message has not been received by a database, the
> thing waits a minute, adds to a loop variable and loops. It does this 3 ti
mes.
>
> If true it goes and gets the result. Problem is it is still in the loop so
 I
> need to break out of it to continue on. I can set the loop variable I've
> created in this decision branch so that it won't loop again, but that seem
s a
> bit untidy.
>
> Is there a better way of doing this?
>
> Thanks,
>
> Martin





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:13 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