Use the Message Mapping
editor to set the value
of a target element to a constant.
- 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.
- 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.