Getting Started
Basic Concepts
Tutorials
Advanced Concepts
How-to Guides
Building integration flows
Data transformation
Integration patterns
Developing Components
Tenant Management
Components
CRM components
ERP components
E-Commerce components
Marketing-related components
Finance-related components
Office components
Protocol components
Service components
Database components
Utility components
References
Sailor
Component Descriptor
Covered in this article

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.