WebSphere Message Brokers
File: ar25269_
Writer: Cerys Giddings

Task topic

This build: July 31, 2007 21:36:33

Setting the value of a target element using an expression or function

There are two ways to set the value of a target element to an expression, depending on whether the target element has an entry in the Map Script column of the Message Mapping editor Spreadsheet pane:
The following examples demonstrate techniques for entering mapping expressions in the Edit pane.
  • If the target element is derived from a source element, drag the source element or elements onto the Edit pane; for example:
    $source/Properties/MessageSet
  • Use arithmetic expressions, such as:
    $source/Properties/Priority + 1
  • Use mapping, Xpath or ESQL function names. Content Assist (Edit > Content Assist) provides a list of available functions. For example:
    esql:upper($source/Properties/ReplyIdentifier)
  • You can perform casting in the Edit pane; for example:
    xs:string($source/Properties/CodedCharSetId)
You cannot enter an expression for a simple element if one of its ancestors also has a mapping. For example, you cannot map Properties from source to target, then set a value of Properties/MessageFormat.
Related concepts
Mapping node functions
Mapping node syntax
Related tasks
Setting the value of a target element to a constant
Setting the value of a target element to a WebSphere MQ constant
Related reference
Message mappings
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:36:33

ar25269_ This topic's URL is: