Setting the value of a target element to a constant

Use the Message Mapping editor to set the value of a target element to a constant.

  1. In the 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.
You can also set a target element to a WebSphere® MQ constant.
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
Setting the value of a target element to a WebSphere MQ constant
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, 2009Copyright IBM Corporation 1999, 2009.
Last updated : 2009-01-07 15:23:02

ar25268_