Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
Unknown
Description
Can we make some easier way to use AggregationStrategy - one is to use lambda but then you have Exchange as inputs that is a bit cumbersome when you need to merge 2 bodies together or something.
There is the org.apache.camel.builder.AggregationStrategies that has convenient methods, but then you need to import this class and find out what method to call.
Maybe if we can have a lambda style where you have the message body or Message instance to work with. Or the bean type where camel adapts to a method signature.
https://camel.apache.org/components/3.18.x/eips/aggregate-eip.html#_aggregating_with_beans