Promoted VS. Written properties into message context

Home Page Forums BizTalk 2004 – BizTalk 2010 Promoted VS. Written properties into message context

Viewing 1 reply thread
  • Author
    Posts
    • #15599

      Dear pros,

      What is the difference between writing a property into the context and promoting a property into the context <physically what happens?>

      What happens when I say msg.Context.Promote(…. and when I say msg.Context.Write ?

       Cheers and thanks for the help in advance,

      Yousef

    • #15604

      Only promoted properties are used for message routing inside the MsgBox (i.e. only promoted properties are considered when evaluating subscription predicates). I haven't looked at the internal implementation, but an educated guess might say that the difference between the two on the object model itself is probably just a flag set or maybe they are kept in separate property collections, but probably not much else. The interesting part all happens in the MsgBox in sql server 🙂

      • #15611

        [quote user="tomasr"]Only promoted properties are used for message routing inside the MsgBox (i.e. only promoted properties are considered when evaluating subscription predicates). I haven't looked at the internal implementation, but an educated guess might say that the difference between the two on the object model itself is probably just a flag set or maybe they are kept in separate property collections, but probably not much else. The interesting part all happens in the MsgBox in sql server 🙂
        [/quote]

        Actually I believe you are spot on.  If I remember correctly, I read somewhere that each written context property also has an IsPromoted (or similar) boolean variable.  If it's true, then the property is considered promoted and available for routing/subscription matching, else it is considered as just written to the message context.

        I look at it this way: the values of written context properties are available to your orchestrations and custom pipeline components; promoted properties have the same features as written properties but have the added benefit of being able to be used for subscription fulfillment.

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