BizTalk Server General - loop thru a collection in Orchestration

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > April 2006 > loop thru a collection in Orchestration





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

2006-04-27, 7:26 am

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


Dick Dijkstra

2006-04-27, 7:26 am

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)

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com