DEV Community

Cover image for How to split the records in Kumologica
ab73863 for Kumologica

Posted on

How to split the records in Kumologica

In this article I am going to demonstrate on how to split a given input object or record in Kumologica. In order to split an object or an array or a string, Kumologica provides split and join node which are required to be used in combination. You may wire as many parallel path between split and a join node. Every path wired between split and join node will be invoked for each iterated or record splitted.

Split node supports

  1. Iterating or lopping through an array.

  2. Tokenizing a simple string based on provided character separator.

  3. Splitting a object based on keys.

Join node is always used along with split node in order to close the loop or to combine the response from different flow path initiated from the split node.

Let's go through each of the above mentioned operations supported by the Split node.

Iterating or lopping through an array

When you have a requirement for a an array to be iterated or looped through and do some actions with the each record or object that has been iterated then you can choose this option.

Alt Text

Configuration in Split node in Kumologica

Alt Text

Splitting a simple string based on provided character separator

When you have a requirement for a string to be tokenized based on some separator then you may use this option.

Alt Text

Configuration in Split node in Kumologica

Alt Text

Splitting a object based on keys

When you have a requirement for iterating through an object based on its keys then you may choose this option.

Alt Text

Configuration in Split node in Kumologica

Alt Text

Flow demonstrating the split and join

Alt Text

References

https://docs.kumologica.com/docs/references/CoreRouting.html#split

https://docs.kumologica.com/docs/guide/GettingStarted.html

https://www.youtube.com/results?search_query=kumologica

Top comments (0)