<?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 [resolved] Camel Routing on file name : startsWith equivalent in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Camel-Routing-on-file-name-startsWith-equivalent/m-p/2247997#M33000</link>
    <description>Hello, i am trying to set a routing condition over a file name : if the file name starts with a given pattern, it goes to Endpoint1, otherwise it goes to endpoint 2.
&lt;BR /&gt;Is it possible to do something like a "startsWith" condition using Camel , on a CMessageRouter ?
&lt;BR /&gt;I would like to do something like "${header.CamelFileNameOnly}.startsWith('test1_')" on my "when" condition, but for now it is not working.
&lt;BR /&gt;If someone got a hint for me, i'll be glad to take it.</description>
    <pubDate>Sat, 16 Nov 2024 11:26:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T11:26:06Z</dc:date>
    <item>
      <title>[resolved] Camel Routing on file name : startsWith equivalent</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Camel-Routing-on-file-name-startsWith-equivalent/m-p/2247997#M33000</link>
      <description>Hello, i am trying to set a routing condition over a file name : if the file name starts with a given pattern, it goes to Endpoint1, otherwise it goes to endpoint 2.
&lt;BR /&gt;Is it possible to do something like a "startsWith" condition using Camel , on a CMessageRouter ?
&lt;BR /&gt;I would like to do something like "${header.CamelFileNameOnly}.startsWith('test1_')" on my "when" condition, but for now it is not working.
&lt;BR /&gt;If someone got a hint for me, i'll be glad to take it.</description>
      <pubDate>Sat, 16 Nov 2024 11:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Camel-Routing-on-file-name-startsWith-equivalent/m-p/2247997#M33000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Camel Routing on file name : startsWith equivalent</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Camel-Routing-on-file-name-startsWith-equivalent/m-p/2247998#M33001</link>
      <description>Hello, 
&lt;BR /&gt;What about using .contains("") ? 
&lt;BR /&gt;It's not the same as a String function but you could do a startWith on the String (camel.CamelFileNameOnly) after the messagerouter in a processor so you're sure you're doing it right. I don't see any other option atm. 
&lt;BR /&gt;Maybe consider asking these camel questions on the camel mailing list.(Without mentionning any vendor 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;)</description>
      <pubDate>Wed, 05 Nov 2014 13:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Camel-Routing-on-file-name-startsWith-equivalent/m-p/2247998#M33001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-05T13:15:29Z</dc:date>
    </item>
  </channel>
</rss>

