How to Resolve a Transformation Service with BRE that occurs after an Orchestration in an Itinerary?

Posted by Maxime Labelle on Stack Overflow See other posts from Stack Overflow or by Maxime Labelle
Published on 2010-06-08T16:10:34Z Indexed on 2010/06/08 16:12 UTC
Read the original article Hit count: 260

In trying to implement simple integration patterns with Biztalk ESB Toolkit 2.0, I'm facing a problem trying to resolve a Transformation Itinerary Service that occurs after an Orchestration.

I'm using the BRE Resolver to execute rules that need to inspect the Context Message Type property to determine the appropriate map to use. However, once the message reaches the step in the Itinerary associated with the Transformation Service, the map fails to execute.

From careful investigation, it appears that the message type is not supplied to the "Resolution" object that is used internally by the BRE resolver. Indeed, since the message leaving the preceding Orchestration is typed System.Xml.XmlDocument, the type of the message is "demoted" from the context.

By tracking rules engine execution, I can observe that the type of the message is indeed lost when reaching the BRE resolver. The type of the message is empty, whereas the strongly-typed of the document is Microsoft.XLANGs.BaseTypes.Any.

The Orchestration service that I use is taken straight from the samples that ship with ESB Toolkit 2.0.

Is there a way to perform Context-Based BRE resolution after an Orchestration in an Itinerary?

© Stack Overflow or respective owner

Related posts about BizTalk

Related posts about biztalk-2009