What does MsgA(*) = MsgB(*) do?

Home Page Forums BizTalk 2004 – BizTalk 2010 What does MsgA(*) = MsgB(*) do?

Viewing 1 reply thread
  • Author
    Posts
    • #18254

      Some code I have picked up has 2 lines:

       

      SendMessage = DetailsMessage;

      SendMessage(*) = DetailsMessage(*);

       Inside a Construct Message.  What is the difference in meaning of these two assignments?

    • #18257

      mchallis,

      The first line copies the message *content* – e.g. xml. The second line copies the message content *plus* the message *context*.

      Stephen W. Thomas has a quick overview here – http://geekswithblogs.net/sthomas/archive/2005/04/26/38286.aspx 

      Hope this helps,

      Nick. 

      • #18264

        Nick,

        Actually, I seem to remember the first one copies both the message contents *and* the message context, while the second copies *only* the message context.

        • #18273

          Yep, I think Tomas is correct. 

          The key is… when you do a transform inside an Orchestration the contaxt isn’t copied for you.  So the 2nd line (from above) would be needed to copy all the context data over if you need it inside the 2nd message.

          This is not the same behavior as mapping on the Receive Port.

          Stephen W. Thomas

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.