2. What is an Aggregator?
Basically a mirror-image of the Splitter, the Aggregator is a type of
Message Handler that receives multiple Messages and combines them into
a single Message. In fact, Aggregators are often downstream consumers in
a pipeline that includes a Splitter.
3. Mule Collection Aggregator
The Collection Aggregator groups incoming messages that have matching
group IDs before forwarding them. The group ID can come from the
correlation ID or another property that links messages together, often this
ID is first assigned when splitting a message with a Collection Splitter.
You can specify the timeout attribute to determine how long the router
waits in milliseconds for messages to complete the group. By default, if the
expected messages are not received by the timeout time, an exception is
thrown and the messages are not forwarded. You can also set the
failOnTimeout attribute to false to prevent the exception from being
thrown and simply forward whatever messages have been received so far.
5. Mule Collection Aggregator – Configuration
Wizard (General Tab)
Following are the options on general tab –
Display Name – The name of the component to be displayed in Mule flow.
Timeout – The timeout time in milliseconds.
Message Info Mapping – Maps the current message attributes with the known
message attributes.
Store Prefix – Defines the prefix of the object store names.
7. Mule Collection Aggregator –Message Info Mapping
Configuration Wizard (general Tab)
Following are the options on general tab –
Message ID Expression – Expression for mapping message attributes to
messageIdExpression.
Correlation ID Expression – Expression for mapping message attributes to
correlationIdExpression.
9. Mule Collection Aggregator – Configuration
Wizard (Advanced Tab)
This tab is used to add business events tracking for the whole process of
aggregator.
10. Mule Collection Aggregator – Configuration
Wizard (Notes and Meta-Data Tabs)
Notes Tab, is used to add special notes for this filter component.
META-DATA Tab, is used to add meta-data for this filter component.