Aggregate component
The Aggregate component combines multiple incoming messages containing data into a single message.
Configuration
The Aggregate component has the following basic configuration options:
File Type
The type of files in the messages to be aggregated.
Options
XML(default)JSON
Only valid XML or JSON files can be aggregated. When aggregating XML files, the messages are wrapped in a root element named Aggregated to produce a valid XML file. JSON files are aggregated into an array.
In the Flow Manager - Transactions the aggregated message will continue on the breadcrumbId of the first message that triggered the aggregation.
It is important to escape invalid characters in XML element values:
<escape with<>escape with>&escape with&
Completion method
The method determines when the aggregated message continues to the next component.
Options
Count(default)Interval
It's based on the amount of messages (Count) or on a time interval (Interval).
Completion count
The maximum amount of messages to aggregate before sending them to the next component.
- Only available when the Completion method is set to
Count.
Completion count timeout
The maximum duration (in milliseconds) the component will wait after receiving the last message before sending the aggregated message to the next component, if the Completion count has not yet been reached.
- Only available when the Completion method is set to
Count.
Completion interval
The duration (in miliseconds) that the Aggregate component waits before sending the aggregated message to the next component.
- Only available when the Completion method is set to
Interval.
The first Completion interval begins when the flow is installed and running in the backend.