Getting Started
Basic Concepts
Tutorials
Advanced Concepts
How-to Guides
Building integration flows
Data transformation
Integration patterns
Developing Components
Components
CRM Components
ERP Components
E-Commerce Components
Basic Components
Utility Components
References
Sailor
Component Descriptor
Covered in this article
Related articles

Splitter component

Splitter component for the elastic.io platform

Actions

Split

Splits incoming message using splitting expression. Message has property body that contains object to split. For example, we have our body that looks like this:

{
    "users": [
        {
            "name": "John"
        },
        {
            "name": "Mike"
        }
    ]
}

Our splitting expression is “users”. As the output of the component we’ll have two objects:

{
    "name": "John"
}

{
    "name": "Mike"
}

If splitting expression refers to object splitter just return this object.

If splitting expression contains primitive value like users:"John" or array of primitives like users:["John", "Mike", "Anna"] splitter emits error.