Transformer Node

Transformer Nodes allow you to transform data from one format to another using various transformer functions.

Transformer Nodes allow you to transform data from one format to another using various transformer functions. They are highly versatile and can be used for a variety of tasks, such as data manipulation, formatting, and conversion.


Configuration Guide

The transformer node features various transfomer functions that you can specify.

Join

The Join transformer allow you to join together a list of items into a single text. It can be joined together with a new line, tab or any form of custom characters.

The value to join has to be a list of items.

The join transformer always outputs a string.

Map

The Map transformer allows you to modify each item in a list with something new. For each item you can choose to pick something from the current context (current item), or something completely new.

The map transformer always outputs a list with the new modified values.


Using multiple transformers

In cases where you would want to use multiple transformers to accomplish a task, you can approach this in two ways!

In the example we will consider the use case of transforming the sources and joining them together.

Approach 1:

Create a transformer node with the transformer map and feed that output into a transformer node with the join transformer.

Approach 2:

Create a transformer node with the transformer join and in the input select map and specify the map.

Pros and cons with the approaches

Approach
Pros
Cons

Approach 1

- Clear separation of transformers. - Easier to debug each transformer separately.

- More nodes to manage. - Slightly more complex setup.

Approach 2

- Fewer nodes to manage. - More streamlined setup.

- Less clear separation of transformers. - Harder to debug if something goes wrong.

Last updated

Was this helpful?