BizTalk Server Orchestration - How to loop through incoming messages and group like message toget

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > January 2005 > How to loop through incoming messages and group like message toget





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 How to loop through incoming messages and group like message toget
Klundell

2005-01-13, 5:51 pm

I need to be able take an incoming batch of flat files and based upon a value
in each of the message I need to be able to group like messages together. In
other words if 20 messages have a value of 123 and 20 messages have a value
of 456 so on and so on. I need to be able to group all of the messages with a
value of 123 into one batch message and all of the messages with a value of
456 into different batch message and send it out. I don't know how to begin
or what would be the best approach. Any ideas ?

Thanks in advance.
Kris.
Matt Milner

2005-01-13, 8:47 pm

Take a look at the docs on convoys. Specifically, you are probably looking
at a sequential uniform convoy. That should get you the receive part of
your solution. From there, you'll need to write some code to insert each of
these messages in our youtgoing message. Then send it when you know you
have them all.
Matt

"Klundell" <Kris.Lundell@uuhsc.com> wrote in message
news:53982A77-2552-465D-8D7B-5E706B3B4039@microsoft.com...
>I need to be able take an incoming batch of flat files and based upon a
>value
> in each of the message I need to be able to group like messages together.
> In
> other words if 20 messages have a value of 123 and 20 messages have a
> value
> of 456 so on and so on. I need to be able to group all of the messages
> with a
> value of 123 into one batch message and all of the messages with a value
> of
> 456 into different batch message and send it out. I don't know how to
> begin
> or what would be the best approach. Any ideas ?
>
> Thanks in advance.
> Kris.



Stephen W. Thomas

2005-01-13, 8:47 pm

Hello.

Matt is correct in that this can be solved using convoys.

First off, you would debatch your messages. Then, route messages to
separate Orchestrations based on the type (123 or 456, etc). Each type would
be a separate Orchestration created to handle those specific messages.

I have examples of both Convoys and Debatching on my blog.
http://www.geekswithblogs.net/sthom...2/12/17373.aspx
http://www.geekswithblogs.net/sthom...8/23/10066.aspx

You would probably want to use Receive Port Debatching for this.

You might also want to check out Allen Smith’s example on how to bring all
the like messages back together again.
http://geekswithblogs.com/asmith/articles/9778.aspx

Hope this helps.

Stephen W. Thomas
http://www.geekswithblogs.net/sthomas


"Klundell" wrote:

> I need to be able take an incoming batch of flat files and based upon a value
> in each of the message I need to be able to group like messages together. In
> other words if 20 messages have a value of 123 and 20 messages have a value
> of 456 so on and so on. I need to be able to group all of the messages with a
> value of 123 into one batch message and all of the messages with a value of
> 456 into different batch message and send it out. I don't know how to begin
> or what would be the best approach. Any ideas ?
>
> Thanks in advance.
> Kris.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com