You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-17Lines changed: 20 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -90,11 +90,14 @@ and the JSONata expression `Phone.{type: number}`, an object constructor, the ac
90
90
```Split Property``` - use this field to choose a separator.
91
91
92
92
### Re-assemble Messages
93
-
**(Beta)**
94
93
95
-
Inverse of the split action: Given a stream of incoming messages that which have
96
-
been split apart by a split action (or similar), produce one message once all
97
-
message parts have arrived.
94
+
Inverse of the split action: Given a stream of incoming messages a sum message is generated.
95
+
96
+
#### List of Expected Config fields
97
+
```Behavior``` - Has 3 different behaviour variants(options):
98
+
* Produce Groups of Fixed Size (Don't Emit Partial Groups): A message is emitted once the group size is reached for the given group. If arriving messages for a particular group are less than the defined group size then the group will not be emitted.
99
+
* Group All Incoming Messages: All incomming messages will be gathered until there are no more incoming messages at which point messages will be emitted for each group.
100
+
* Produce Groups of Fixed Size (Emit Partial Groups): Specify both group size and delay timer. Once a group is complete, that group will be emitted. Once there are no more incoming messages, then partially completed groups will also be emitted.
98
101
99
102
Supported:
100
103
* Messages can be re-ordered in the flow
@@ -103,28 +106,28 @@ Supported:
103
106
(e.g. Two overlapping webhook calls arrive and the flow has components where parallel processing > 1.)
104
107
105
108
Limitations:
106
-
* All groups must have one or more messages. (i.e. No groups of size 0).
107
-
Can't do re-grouping when a split is done on an empty array. (i.e. No empty for each pattern supported)
108
-
* If all messages in a group fail to arrive at the re-assemble action (because one message suffered an error earlier in the flow)
109
-
then this component will silently discard the group.
110
-
* All messages must arrive within the same container lifetime.
111
-
If at any point there is more than a 15 second gap in messages, then the group will be silently discarded.
109
+
* All groups must have one or more messages. (i.e. No groups of size 0).
110
+
Can't do re-grouping when a split is done on an empty array. (i.e. No empty for each pattern supported).
111
+
If all the messages in the group do not arrive, then the group will not be emitted.
112
112
* The group is dropped if there are any unexpected restarts to the container.
113
-
* Size of the group must be known by all group members.
114
-
* Messages are only emitter when all parts arrive. Emitting a message only when the first part arrives isn't supported.
113
+
* In case only a groupSize is given and no delay timer is specified. The size of the group must be known by all group members.
114
+
* In case of using the delay timer. Messages are only emitted when all parts arrive. Emitting a message only when the first part arrives isn't supported.
115
+
* The delay timer can not exceed 40,000 milliseconds. If more than this maximum is given, then this maximum will be used instead.
115
116
116
117
#### List of Expected Config fields
117
-
```groupSize``` - Number of messages in the group
118
-
119
118
```groupId``` - Globally unique id for the group to distinguish it from other groups. This value needs to be the same for all messages in a group.
120
119
121
-
```messageId``` - Id for a message to distinguish it from other messages in the group.
120
+
```messageId``` - Id for a message to distinguish it from other messages in the group.
122
121
Must be unique per group but does not have to be globally unique. This value needs to be different for all messages in a group.
123
122
124
-
```messageData``` - object for providing some data derived from the steps between splitting and re-assembling
123
+
```messageData``` - Data from individual messages can be inserted here in form of an object. This object is then inserted into an array which is available in the message emitted for this group.
124
+
125
+
```groupSize``` - Number of messages in the group.
126
+
127
+
```Delay timer (in ms)``` - Time the process waits when no incoming messages before emiting (Max 40,000 milliseconds)
125
128
126
129
## Known limitations (common for the component)
127
-
No.
130
+
None.
128
131
129
132
## Documentation links
130
133
More information and some examples can be found here: [Splitter documentation](https://www.elastic.io/connectors/splitter-integration/).
"title": "Number of messages produced by splitter"
55
-
},
56
-
"groupId": {
57
-
"type": "string",
58
-
"required": true,
59
-
"title": "Unique ID to describe the group"
60
-
},
61
-
"messageId": {
62
-
"type": "string",
63
-
"required": true,
64
-
"title": "Unique ID to describe this message"
65
-
},
66
-
"messageData": {
67
-
"title": "Message Data",
68
-
"required": false,
69
-
"type": "object",
70
-
"properties": {}
71
-
}
72
-
}
51
+
"model": {"groupSize": "Produce Groups of Fixed Size (Don't Emit Partial Groups)", "timeout": "Group All Incoming Messages", "groupSize&timeout": "Produce Groups of Fixed Size (Emit Partial Groups)"},
0 commit comments