WebSphere Message Broker, Version 8.0.0.7 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

Setting the value of an output element to a constant

Use the Graphical Data Mapping editor to set the value of an output element to a constant.

You can use the Assign transform to set a character string value in an output element. If you want an explicit data type for the value in the output element, use a Cast transform with the required xs:type.

You can have zero or more input elements to a Cast transform. However, you can only cast one value for an output element by using a Cast transform. If the mapping for the Cast transform has more than one input, any input that is not referenced by the argument of the Cast transform will be ignored.

You can also set a value by using an expression or function, as described in Setting the value of an output element using an expression or function.

Follow these steps to set the value of an element by using the Assign or Cast transforms:

  1. Create an Assign transform for the output element, by using either of the following methods:
    • Left-click the output element and drag the connector towards the input elements, releasing the connector onto a blank part of the canvas. When you release the connector, an Assign transform is created. Using the drop-down, this can be changed to a Cast.
    • Right-click the output element and then select Create Assign.
      The Graphical Data Mapping editor displaying the applied Assign transform
  2. Enter the required constant into the Value field in the Properties panel for the Assign or Cast transform. The constant value can be any simple value. Do not enclose string literals in single or double quotes; enter the required text in the entry field without quotes. However, when you enter an XPath expression for a Custom XPath transform, you must enclose the string literals in quotes. If you do not specify a value, an empty element is created.
    Properties window: Transform - Assign
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2016Copyright IBM Corporation 1999, 2016.

        
        Last updated:
        
        Last updated: 2016-05-23 14:48:31


Task topicTask topic | Version 8.0.0.7 | cm28811_