Monday 25 February 2008

Promoting Properties that are not in a Message

In most instances properties are promoted from message content during the disassemble stage of a pipeline. However, in some cases it is useful to promote a property that does not relate to the content of a message. For example you may want to generate a unique identifier for a transaction and promote that into context for later use. To do so:

  • Create a new property schema (or open an existing one)
  • Add a new Child Field Element named with the required property name
  • In the properties window, set the "Property Schema Base" property to MessageContextPropertyBase. This is the key to making this work. The default value is MessageDataPropertyBase indicating that the value is coming from a message
  • In the orchestration or pipeline, set the new property value programmatically
See Stephen W Thomas's blog entry for more on this.

No comments: