You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/08/26 07:46:00 UTC

[jira] [Created] (CAMEL-18430) camel-core - Make it easier to use aggregation strategy in camel-k like way

Claus Ibsen created CAMEL-18430:
-----------------------------------

             Summary: camel-core - Make it easier to use aggregation strategy in camel-k like way
                 Key: CAMEL-18430
                 URL: https://issues.apache.org/jira/browse/CAMEL-18430
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
            Reporter: Claus Ibsen
             Fix For: 3.x


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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)