Combine


The Combine node merges split data into an array.

Node Type

Logic.

Input and Output Ability

This node has multiple entry points and 1 exit point. The input is String or JSON and the output is an array or JSON array.

Node Properties

../../_images/combine.png


Name

The name for this node.


Aggregation Count

Combines the data into a group according to the specified count and outputs the group(s) that meets the condition. For example, if there are 3 inputs and the aggregation count is 2, the first two inputs will be combined into 1 output and output to msg, and when the flow is next triggered and more inputs come in, the third input will be combined with the next input and output to msg. If there are 4 inputs and the aggregation count is 2, the inputs will be combined into groups of 2 and both groups will be output the msg at the same time.


Expressions such as ${msg.number} and ${metadata.number} can be used.


Note

The value entered must be a positive integer.


Description

The description for this node.

Samples

Input Sample

  • Input 1
{
    "assetId": "abc",
    "timestamp": 24214324324,
    "measurepoints":{
        "temperature": 22.4,
        "humidity": 78
    }
}


  • Input 2
{
    "externalId": "externalId",
    "timestamp": 24214324324,
    "measurepoints":{
        "speed": 32,
        "heat": 40
    },
    "assetId":"assetId"
}


Output Sample

[
    {
        "assetId": "abc",
        "timestamp": 24214324324,
        "measurepoints":{
            "temperature": 22.4,
            "humidity": 78
        }
    },
    {
        "externalId": "externalId",
        "timestamp": 24214324324,
        "measurepoints":{
            "speed": 32,
            "heat": 40
        },
        "assetId":"assetId"
    }
]