BizTalk Server Orchestration - Dynamically setting correlation set values

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > June 2005 > Dynamically setting correlation set values





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 Dynamically setting correlation set values
KriS

2005-06-16, 5:50 pm

Question: Is there a way to change the correlation set values after an
instance of an orchestration has been created?

I found a post out there that talks about programmatically setting the
values of a correlation set with out having a send or receive shape in your
orchestration. That's similar to what we're trying to do in the sense that
we want to change the correlation set values. According to this post its not
possible but I guess I'm just trying to double check this information.

http://www.webservertalk.com/message148795.html

Here's an example:

Lets say you have an orchestration with an activateable receive port. We
send a message to this port and an instance of our orchestration is created.
This first message that hits our receive port initializes the correlation set
value. Something like OrderID = 5. Ok, so now we are in our orchestration
instance and we are listening for messages that have an OrderID element with
a value of 5. Is there a way to change this correlation value after the
instance of the orchestration has been created? Maybe you get in a message
that you use to reset the correlation value... Also can an item from a
correlation set listen for multiple values. i.e. listening for messages
that have an OrderID value of 5, 6, 12, 35, 55. It's the same concept as
using a message filter expression on a receive port.
Can we have some sort of a custom pipeline to promote multiple values to
correlate on?

Any help would be much appreciated.

Thanks in Advance.
KriS


Ben Cuttriss

2005-06-29, 5:51 pm

KriS,

In answer to part one of your question / or to give you another way of
looking at it, once the correlation set is initialized, then it's finished in
terms of the data. You could always initialize another correlation set (use
with free abandon) with the new values if thats what you want to do and
follow this one.

Part two: Seems like you are trying to use the wrong information to perform
the corelation. If you want to capture information for multiple instances of
orders for example, generate a unique GUID that trancends all of them and
correlate on that?

Also, there is another long article that you might want to read (I just saw
it in another post) so browse this...

http://www.microsoft.com/technet/co...9b-178d4d95876f

HTH
Ben

"KriS" wrote:

> Question: Is there a way to change the correlation set values after an
> instance of an orchestration has been created?
>
> I found a post out there that talks about programmatically setting the
> values of a correlation set with out having a send or receive shape in your
> orchestration. That's similar to what we're trying to do in the sense that
> we want to change the correlation set values. According to this post its not
> possible but I guess I'm just trying to double check this information.
>
> http://www.webservertalk.com/message148795.html
>
> Here's an example:
>
> Lets say you have an orchestration with an activateable receive port. We
> send a message to this port and an instance of our orchestration is created.
> This first message that hits our receive port initializes the correlation set
> value. Something like OrderID = 5. Ok, so now we are in our orchestration
> instance and we are listening for messages that have an OrderID element with
> a value of 5. Is there a way to change this correlation value after the
> instance of the orchestration has been created? Maybe you get in a message
> that you use to reset the correlation value... Also can an item from a
> correlation set listen for multiple values. i.e. listening for messages
> that have an OrderID value of 5, 6, 12, 35, 55. It's the same concept as
> using a message filter expression on a receive port.
> Can we have some sort of a custom pipeline to promote multiple values to
> correlate on?
>
> Any help would be much appreciated.
>
> Thanks in Advance.
> KriS
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com