Using Functions

You can use a function from the list of functions in the right column of the mapper and provide the necessary input to the function by using the elements from the output fields in the left column of the mapper.

Here's an example that concatenates two strings and outputs the concatenated message and assigns it to message. We map the first string (str1) to id. The value for id comes from the output of the InvokeRESTService activity. We manually enter a string to replace str2 which will be concatenated to the value of id.

Procedure

  1. Click message to open the mapper to the right.
  2. Expand the string function group in the right column and click concat(str1, str2).

  3. Select str1 in the function and click Employee Name to replace str1 with it.

  4. Select str2 and type " record retrieved." (be sure to include the double quotes as shown below)

    At runtime, the output from the concat function will be mapped to message.