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.
    • Start of changeFor 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.End of change
    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
Start of changeMapping node functionsEnd of change
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