<?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: User Defined routines in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/User-Defined-routines/m-p/2340809#M108812</link>
    <description>&lt;P&gt;If you want to see some more examples, take a look at my library: https://github.com/jlolling/talend_routines&lt;/P&gt;&lt;P&gt;Thats my library of Talend routines I have collected over many years.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jan 2023 10:13:38 GMT</pubDate>
    <dc:creator>jlolling</dc:creator>
    <dc:date>2023-01-02T10:13:38Z</dc:date>
    <item>
      <title>User Defined routines</title>
      <link>https://community.qlik.com/t5/Talend-Studio/User-Defined-routines/m-p/2340807#M108810</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I've created a user routine under Global routines wizard, when i create this routine, it is supposed to appear in tmap &amp;gt;expression builder &amp;gt; User defined list. But is not appearing in the list, can anyone help me out with this one ? &lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/User-Defined-routines/m-p/2340807#M108810</guid>
      <dc:creator>Soumya_M</dc:creator>
      <dc:date>2024-11-15T22:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: User Defined routines</title>
      <link>https://community.qlik.com/t5/Talend-Studio/User-Defined-routines/m-p/2340808#M108811</link>
      <description>&lt;P&gt;Talend has its own mechanism for setup comments and a kind of JavaDoc to use it in the expression builder as template suggestion.&lt;/P&gt;&lt;P&gt;The problem is the {Category} tag. Please type here your class name - a Talend routine is simply a Java class with static methods.&lt;/P&gt;&lt;P&gt;Here an example:&lt;/P&gt;&lt;P&gt;	/**&lt;/P&gt;&lt;P&gt;	 * returns the first not empty string&lt;/P&gt;&lt;P&gt;	 *&amp;nbsp;&lt;/P&gt;&lt;P&gt;	 * {Category} StringUtil&lt;/P&gt;&lt;P&gt;	 *&amp;nbsp;&lt;/P&gt;&lt;P&gt;	 * {talendTypes} String&lt;/P&gt;&lt;P&gt;	 *&amp;nbsp;&lt;/P&gt;&lt;P&gt;	 * {&lt;U&gt;param&lt;/U&gt;} string("testMe1","testMe2") strings: String.&lt;/P&gt;&lt;P&gt;	 *&amp;nbsp;&lt;/P&gt;&lt;P&gt;	 * {example} coalesce(" test","&lt;U&gt;hans&lt;/U&gt;"," TEST ","&lt;U&gt;Tata&lt;/U&gt;") # "test"&lt;/P&gt;&lt;P&gt;	 */&lt;/P&gt;&lt;P&gt;	&lt;B&gt;public&lt;/B&gt; &lt;B&gt;static&lt;/B&gt; String coalesce(String... strings) {&lt;/P&gt;&lt;P&gt;		&lt;B&gt;for&lt;/B&gt; (String s : strings) {&lt;/P&gt;&lt;P&gt;			&lt;B&gt;if&lt;/B&gt; (s != &lt;B&gt;null&lt;/B&gt;) {&lt;/P&gt;&lt;P&gt;				s = s.trim();&lt;/P&gt;&lt;P&gt;				&lt;B&gt;if&lt;/B&gt; (&lt;I&gt;isEmpty&lt;/I&gt;(s) == &lt;B&gt;false&lt;/B&gt;) {&lt;/P&gt;&lt;P&gt;					&lt;B&gt;return&lt;/B&gt; s;&lt;/P&gt;&lt;P&gt;				}&lt;/P&gt;&lt;P&gt;			}&lt;/P&gt;&lt;P&gt;		}&lt;/P&gt;&lt;P&gt;		&lt;B&gt;return&lt;/B&gt; &lt;B&gt;null&lt;/B&gt;;&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 10:11:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/User-Defined-routines/m-p/2340808#M108811</guid>
      <dc:creator>jlolling</dc:creator>
      <dc:date>2023-01-02T10:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: User Defined routines</title>
      <link>https://community.qlik.com/t5/Talend-Studio/User-Defined-routines/m-p/2340809#M108812</link>
      <description>&lt;P&gt;If you want to see some more examples, take a look at my library: https://github.com/jlolling/talend_routines&lt;/P&gt;&lt;P&gt;Thats my library of Talend routines I have collected over many years.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 10:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/User-Defined-routines/m-p/2340809#M108812</guid>
      <dc:creator>jlolling</dc:creator>
      <dc:date>2023-01-02T10:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: User Defined routines</title>
      <link>https://community.qlik.com/t5/Talend-Studio/User-Defined-routines/m-p/2340810#M108813</link>
      <description>&lt;P&gt;hello ,&lt;/P&gt;&lt;P&gt;could you share you code above your method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 17:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/User-Defined-routines/m-p/2340810#M108813</guid>
      <dc:creator>zjing</dc:creator>
      <dc:date>2023-01-04T17:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: User Defined routines</title>
      <link>https://community.qlik.com/t5/Talend-Studio/User-Defined-routines/m-p/2340811#M108814</link>
      <description>&lt;P&gt;Take a look into my provided examples above. You will find tons of code!&lt;/P&gt;&lt;P&gt;My example here is from the class StringUtil - also part of my routine library (see github link)&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 17:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/User-Defined-routines/m-p/2340811#M108814</guid>
      <dc:creator>jlolling</dc:creator>
      <dc:date>2023-01-04T17:48:24Z</dc:date>
    </item>
  </channel>
</rss>

