Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

All mapping rules in inputPath are relative to the context given by input parameter. By default, this value is the current pipeline bodymessage.

The output parameter points to the location, where the mapping results should be written to. This is by default the body of the pipeline message, so body, vars and headers can be accesses easily.

The final mapping result in the body will look like this:

...

Code Block
vars:
    mappingResult: null
pipeline:
    - data.mapping:
        rules: |
            ...
        output: "${vars.mappingResult}"

Make sure that the output target was created before since this helps for better readability.

...