<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to specify the method to call for an AggregationStrategy in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-specify-the-method-to-call-for-an-AggregationStrategy/m-p/2277519#M53275</link>
    <description>&lt;P&gt;Ended up going with a cJavaDSLProcessor and implementing it myself. Not pretty, but it works.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Feb 2019 16:04:35 GMT</pubDate>
    <dc:creator>davidferguson</dc:creator>
    <dc:date>2019-02-21T16:04:35Z</dc:date>
    <item>
      <title>How to specify the method to call for an AggregationStrategy</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-specify-the-method-to-call-for-an-AggregationStrategy/m-p/2277517#M53273</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm using various enterprise integration patterns that support exchange aggregation within Talend routes (e.g. Content-Enricher, Aggregator, Recipient-List and so on) and am able to create a bean that implements the AggregationStrategy interface just fine.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However, I was wondering how I would go about implementing a bean where I define multiple aggregate methods (with custom names) within the same bean. The use-case here is that I need to aggregate multiple times within a route and having to create separate beans each time is a bit silly. According to the &lt;A href="https://camel.apache.org/content-enricher.html" target="_self" rel="nofollow noopener noreferrer"&gt;documentation for poll enrich&lt;/A&gt; for example, I should be able somehow define a parameter called &lt;FONT face="courier new,courier"&gt;strategyMethodName&lt;/FONT&gt; to specify the aggregation strategy method name to use.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The problem is, I can't figure out how to do this in Talend as the Aggregation Strategy field in the cContentEnricher Talend component for example is hard-coded to create a new instance of my bean so I can't so something like:&lt;/P&gt; 
&lt;PRE&gt;...
.pollEnrich(
    "file:path/to/file/?fileName=some.file",
    3000,
    AggregationStrategies.bean(
        new beans.CustomAggregation(), "myCustomAggregationMethodName"
    )
)
...&lt;/PRE&gt; 
&lt;P&gt;Reference documentation for the &lt;FONT face="courier new,courier"&gt;AggregationStrategies.bean&lt;/FONT&gt; method &lt;A href="https://static.javadoc.io/org.apache.camel/camel-core/2.17.0/org/apache/camel/util/toolbox/AggregationStrategies.html" target="_self" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Does anyone know how to call a custom method name for aggregation in Talend? Maybe using cBean or cBeanRegister? I'm using Talend ESB 6.4.1&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-specify-the-method-to-call-for-an-AggregationStrategy/m-p/2277517#M53273</guid>
      <dc:creator>davidferguson</dc:creator>
      <dc:date>2024-11-16T06:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify the method to call for an AggregationStrategy</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-specify-the-method-to-call-for-an-AggregationStrategy/m-p/2277518#M53274</link>
      <description>Bumpity-bump.&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Feb 2019 08:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-specify-the-method-to-call-for-an-AggregationStrategy/m-p/2277518#M53274</guid>
      <dc:creator>davidferguson</dc:creator>
      <dc:date>2019-02-21T08:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify the method to call for an AggregationStrategy</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-specify-the-method-to-call-for-an-AggregationStrategy/m-p/2277519#M53275</link>
      <description>&lt;P&gt;Ended up going with a cJavaDSLProcessor and implementing it myself. Not pretty, but it works.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 16:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-specify-the-method-to-call-for-an-AggregationStrategy/m-p/2277519#M53275</guid>
      <dc:creator>davidferguson</dc:creator>
      <dc:date>2019-02-21T16:04:35Z</dc:date>
    </item>
  </channel>
</rss>

