<?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 Alternatives to creating multiple case blocks in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Alternatives-to-creating-multiple-case-blocks/m-p/2354677#M120591</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently working on extracting data from a file using a tJavaFlex. I use the substring method a lot. But now I need to use cases. In fact, I'm extracting a string from the file that can correspond to more than 100 categories. I can create a hundred cases in my tJavaFlex, but that makes the code harder to read. So is there a more efficient way to do this in Talend?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you ! &lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:32:59 GMT</pubDate>
    <dc:creator>stephbzr</dc:creator>
    <dc:date>2024-11-15T21:32:59Z</dc:date>
    <item>
      <title>Alternatives to creating multiple case blocks</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Alternatives-to-creating-multiple-case-blocks/m-p/2354677#M120591</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently working on extracting data from a file using a tJavaFlex. I use the substring method a lot. But now I need to use cases. In fact, I'm extracting a string from the file that can correspond to more than 100 categories. I can create a hundred cases in my tJavaFlex, but that makes the code harder to read. So is there a more efficient way to do this in Talend?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you ! &lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Alternatives-to-creating-multiple-case-blocks/m-p/2354677#M120591</guid>
      <dc:creator>stephbzr</dc:creator>
      <dc:date>2024-11-15T21:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Alternatives to creating multiple case blocks</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Alternatives-to-creating-multiple-case-blocks/m-p/2354678#M120592</link>
      <description>&lt;P&gt;Hello @Stéphane Barbezier​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;To avoid multiple switch case statements in java, you can use HashMap as instead.&lt;/P&gt;&lt;P&gt;Please refer to this:&lt;/P&gt;&lt;P&gt;https://stackoverflow.com/questions/64692014/how-to-avoid-multiple-switch-case-statements&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Aiming&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 07:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Alternatives-to-creating-multiple-case-blocks/m-p/2354678#M120592</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-25T07:05:09Z</dc:date>
    </item>
  </channel>
</rss>

