Example: Chaining Multiple Functions

About this task

Multiple functions can be chained together in a single mapping rule. The flow of execution of the functions in the mapping rule is from left to right.

For example, you could build a mapping rule that uses multiple functions as described in the following sequence:

Procedure

  1. A source node of type: string is the input parameter to the trim function.
  2. The trim function removes trailing and leading white space from the input parameter and the resulting string is returned.
  3. The return string of the trim function is the input parameter to the lowercase function.
  4. The lowercase function converts each of the uppercase characters of the input string into their lowercase form and the resulting string is returned.
  5. The return string of the lowercase function populates the destination node of type: string.

Results

In the Mapping Editor, this mapping rule is displayed as shown in the following figure.




Feedback | Notices


Timestamp icon Last updated: Wednesday, 15 June 2016


http://pic.dhe.ibm.com/infocenter/wci/v7r0m0/topic/com.ibm.wci.doc/map_assigning_functions_example.html