Integrating Integrators – BizTalk, Windows Azure, Windows Workflow, and Beyond
Join
Sign in
Search Options
Search Everything
Search BizTalk Blogs
Home
AppFabric
BizTalk Server
Windows Azure
Windows Workflow
Jobs (Hire A Guru)
More ...
Home
»
BizTalk Server
»
BizTalk Blogs
»
Stephen W. Thomas BizTalk MVP
»
Message Context and Mapping Inside an Orchestration in BizTalk 2004
Message Context and Mapping Inside an Orchestration in BizTalk 2004
BizTalk Blogs
This group is for blogs related to BizTalk Server. This includes Community Syndicated blogs and Stephen W. Thomas’s blog.
Get this RSS feed
Home
Blogs
Sitewide Application Navigation
Home
Blogs
Media
Forums
Wikis
Groups
Options
Share this
Monthly Archive List
Archives
May 2013
(1)
April 2013
(4)
March 2013
(1)
February 2013
(2)
December 2012
(1)
November 2012
(4)
October 2012
(6)
September 2012
(6)
July 2012
(1)
May 2012
(2)
April 2012
(1)
February 2012
(1)
January 2012
(1)
September 2011
(1)
August 2011
(3)
March 2011
(1)
February 2011
(2)
January 2011
(1)
December 2010
(1)
November 2010
(2)
October 2010
(4)
September 2010
(3)
August 2010
(2)
October 2009
(1)
June 2009
(1)
May 2009
(1)
April 2009
(5)
February 2009
(1)
January 2009
(1)
December 2008
(1)
November 2008
(4)
October 2008
(3)
September 2008
(1)
May 2008
(1)
April 2008
(2)
March 2008
(3)
February 2008
(3)
January 2008
(1)
December 2007
(3)
November 2007
(4)
October 2007
(2)
September 2007
(2)
July 2007
(1)
May 2007
(2)
April 2007
(1)
December 2006
(3)
November 2006
(2)
October 2006
(2)
September 2006
(5)
August 2006
(5)
July 2006
(5)
April 2006
(4)
March 2006
(4)
February 2006
(1)
January 2006
(2)
December 2005
(3)
November 2005
(3)
October 2005
(5)
September 2005
(9)
August 2005
(9)
July 2005
(7)
June 2005
(7)
May 2005
(1)
April 2005
(6)
March 2005
(3)
February 2005
(4)
January 2005
(3)
December 2004
(2)
November 2004
(3)
October 2004
(8)
September 2004
(5)
August 2004
(7)
July 2004
(4)
Tags
Applied Architecture Patterns on the Microsoft Platform
Azure
biztalk
biztalk 2004
biztalk 2006
BizTalk 2009
BizTalk 2013
biztalk book
biztalk errors
Biztalker
Book
Contest
convoy
debatching
deployment
flat files
maps
orchestration
pipelines
schema
testing
Virtual Machines
Window Azure
Windows Azure Virtual Machines
Workflow 4
Stephen W. Thomas BizTalk MVP
Insight and guidance on BizTalk, AppFabric, and related Microsoft technologies.
RSS for posts
Message Context and Mapping Inside an Orchestration in BizTalk 2004
Rate This
Stephen W. Thomas
Mon, Apr 25 2005 11:21 PM
Comments
0
Message context is a critical part of message routing and processing inside BizTalk Server 2004.
How this context is handled during mapping is different depending on the location of the mapping.
The context is copied differently using Receive Port mapping verses Orchestration mapping.
Why should you care?
If you are using Direct Message Box Binding to route message out of an Orchestration you might not have the correct context propertied to route your message.
This only impacts messages that needed to be routed out of an Orchestration based on a value in the original pre-mapped message.
Let’s look at the two types of mappings and what happens to the context.
Receive Port Mapping
This is a common type mapping since it generally allows for greater flexibility.
Receive port mapping occurs after the pipeline completes.
This means that context properties will already be promoted by various stages of the pipeline.
In this case, the new mapped message has all the original context values of the initial message with any duplicate values updated (i.e. like message type is now the type of the mapped message).
In addition, any prompted values in the mapped message are now promoted into the context.
To sum it up, Receive Port mapping yields a superset of message context data from both the original message and the new mapped message.
Orchestration Mapping
Orchestration mapping behaves in a totally different manner.
Using Orchestration mapping, the context of the original message is NOT copied automatically into the newly created message.
But, any promoted fields in the new message are promoted into the message context after mapping.
Getting the original message context into the new message is easy.
Just add a Message Assignment shape after the transform but inside the same Construct.
Add the following code:
MessageOut(*) = MessageIn(*)
This would look something like this:
This will copy the entire context from the original message into the new message and result in a superset just like the Receive Port mapping.
Individual message context fields can also be copied using this same method.
To sum it up, Orchestration Mapping does not copy original message context by default.
Overall, it is import to know what values are inside your message context as your message flows through your workflow process.
This will ensure correct message routing and help resolve routing failures quickly.
maps
,
orchestration
,
context