IBM Integration Bus, Version 10.0.0.0 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS


Accessing user-defined properties from a Mapping node

You can use a Mapping node to access properties that are associated with the message flow that contains the node.

About this task

To access these properties from a Mapping node, call the function iib:getUserDefinedProperty("propertyname") from a Custom XPath transform. The function returns a string that contains the property value, regardless of the original type of the property.

Note: In IBM® Integration Bus Version 10, the function mb:getUserDefinedProperty("propertyname") is deprecated. If you try to use this function, you get the following message: The function mb:getUserDefinedProperty in XPath mb:getUserDefinedProperty('UDP1') is deprecated. Use the corresponding "iib:" function instead.

Procedure

To access user-defined properties from a Mapping node, complete the following steps:

  1. Add a Custom XPath transform to the map.
  2. In the General tab of the transform's Properties page, define the function iib:getUserDefinedProperty("MypropertyName") to obtain the value of your user-defined property MypropertyName.
    Note: When you define the iib:getUserDefinedProperty("MypropertyName") function in a Custom XPath transform, the map displays a warning message. You can ignore this message.
    The iib:getUserDefinedProperty XPath function in the iib:getUserDefinedProperty("{0}") XPath is not supported.

br34267_.htm | Last updated 2015-03-27 19:28:36