loop thru a collection in Orchestration
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 General > loop thru a collection in Orchestration




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

    loop thru a collection in Orchestration  
Eric Stott


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


 
04-27-06 12:26 PM

Is there any way to loop thru a collection in an orchestration.
I need to read the event log collection, and based on those entries, I need
to call a business rule and send a message out.

The loop shape is a while loop, I need to invode a foreach, but don't see
how it can be done as I need to, inside the foreach, create a message and
send it out thru a send port.

thanks
Eric







[ Post a follow-up to this message ]



    Re: loop thru a collection in Orchestration  
Dick Dijkstra


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


 
04-27-06 12:26 PM

Eric,

Just use an index:

1) In an expression shape: index = 0;

2) This is the loop condition: index < collection.length

3) Within the loop, assign a new message in an Assign shape

4) Send the message (collection[index]) in the loop shape

5) Increment the index: index++;

HTH,

Dick Dijkstra (www.dickdijkstra.com)






[ Post a follow-up to this message ]



    Sponsored Links  




 





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