This topic contains sections marked as revised for this release

WebSphere Message Brokers
File: ar25268_
Writer: Cerys Giddings

Task topic

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

Setting the value of a target element to a constant

To set the value of a target element to a constant:
  1. In the Message Mapping editor Target pane, right-click the target element or attribute and click Enter Expression. If the target element or attribute has a default value, this value is added to the Edit pane.
  2. Enter the required constant in the Edit pane and click Enter. When entering the constant, observe the following rules:
    • Enclose string element values in single quotation marks.
    • Enter numeric element values without quotation marks.
    • For boolean element values enter 0 for false or 1 for true, without quotation marks. Alternatively, you can enter the fn:false() function for false, or the fn:true() function for true.
    The Spreadsheet pane is updated with the value that you have defined.
You cannot set a value 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 for Properties/MessageFormat.
A target element can also be set to a WebSphere MQ constant. See Setting the value of a target element to a WebSphere MQ constant for further information.
Related concepts
Message Mapping editor
Creating message mappings
Mapping node functions
Related tasks
Setting the value of a target element using an expression or function
Related reference
Message Mapping editor Target pane
Message Mapping editor Edit pane
Message Mapping editor Spreadsheet pane
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

ar25268_ This topic's URL is: