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

Cast

Sets a specific value type in the output element. Cast can also move and convert an input element to become a specific value type in the output element.

Overview

When you use an Cast transform, you can have zero or more input elements mapped to the transform, but only a single output element. You can cast one value to set the output element. This value is set in the Value column of theGeneral tab on the Properties page. The value can be one of the following entities:
  • A literal value
  • A single input value
  • An XPath expression that uses zero or more of the input values

You can also use any of the input elements to build an XPath conditional expression that determines whether the Cast transform is applied or not. You set this conditional expression on the Condition tab of the Properties page.

If you want to create a character string value in an output element, use the Assign transform. For any other type, use Cast.

To create a Cast transformation:
  1. Right-click the output element and select Create Cast.
  2. Enter the value in the properties view of the Cast transform.
  3. Enter xs:type in the Type field, replacing type with the type you want to cast.

For more information about assigning a value to an output element, see Setting the value of output elements.

For information about the Mapping node, see Mapping node.

Notices | Trademarks | Downloads | Library | Support | Feedback

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

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


Reference topicReference topic | Version 8.0.0.7 | cm40826_