This JoinEach can be used in combination with Each component. The 'count' port has to receive the total number of messages that the component will wait for on the 'in' port. When that number of messages arrives, it will send an object with an array containing all the input messages to it's output port.
Input Ports
in
Field
Type
Description
Correlation ID
select
For every JoinEach there must be a source Each (or similar) component. JoinEach component needs the Correlation ID from the Each component to correctly join the input messages together.
count
Field
Type
Description
Number of input messages
number
Number of input message this component will wait for. Usually, use the 'Items count' output property from the Each component's 'done' port.
Correlation ID
select
Set the Correlation ID to the same variable as you selected in the Correlation ID input field of the 'in' input port configuration.
Timeout
toggle
A problem may occur in the flow and one or several messages may not arrive to the input port. The component will wait for specified number of seconds. After that it will send a message to the 'timedOut' port. That message will contain number of expected items, number of items that actually arrived and an array of items that arrived.
Timeout (seconds).
number
Timeout in seconds. A problem may occur in the flow and one or several messages may not arrive to the input port. The component will wait for specified number of seconds. After that it will send a message to the 'timedOut' port. That message will contain number of expected items, number of items that actually arrived and an array of items that arrived.