<?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 Use row in routine in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Use-row-in-routine/m-p/2423989#M140236</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;In my job I used to call a routine in my tMap to construct a String with some informations I have (or not) in my input rows.&lt;/P&gt;
&lt;P&gt;I call my routine function like and I use different attibutes inside the function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;Utils.getLigneBulk(row8, row9, row10) &lt;/LI-CODE&gt;&lt;LI-CODE lang="java"&gt;import project_name.job_name_0_1.JOB.row8Struct;
import project_name.job_name_0_1.JOB.row9Struct;
import project_name.job_name_0_1.JOB.row10Struct;
....

public static String getLigneBulk(row8Struct row8,row9Struct row9, row10Struct row10) {
// ....
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I have a problem in the routine with the classes and imports because it's refers to a missing type&amp;nbsp;row8Struct (and I suppose it's the same for&amp;nbsp;row9Struct and&amp;nbsp;row10Struct).&lt;/P&gt;
&lt;P&gt;However this worked in my previous job version on V6.x but not now in v8.x. Maybe I forgot some things.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any advises.&lt;BR /&gt;Best regards.&lt;/P&gt;
&lt;P&gt;Antho&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2024 11:06:41 GMT</pubDate>
    <dc:creator>antdurif</dc:creator>
    <dc:date>2024-02-27T11:06:41Z</dc:date>
    <item>
      <title>Use row in routine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-row-in-routine/m-p/2423989#M140236</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;In my job I used to call a routine in my tMap to construct a String with some informations I have (or not) in my input rows.&lt;/P&gt;
&lt;P&gt;I call my routine function like and I use different attibutes inside the function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;Utils.getLigneBulk(row8, row9, row10) &lt;/LI-CODE&gt;&lt;LI-CODE lang="java"&gt;import project_name.job_name_0_1.JOB.row8Struct;
import project_name.job_name_0_1.JOB.row9Struct;
import project_name.job_name_0_1.JOB.row10Struct;
....

public static String getLigneBulk(row8Struct row8,row9Struct row9, row10Struct row10) {
// ....
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I have a problem in the routine with the classes and imports because it's refers to a missing type&amp;nbsp;row8Struct (and I suppose it's the same for&amp;nbsp;row9Struct and&amp;nbsp;row10Struct).&lt;/P&gt;
&lt;P&gt;However this worked in my previous job version on V6.x but not now in v8.x. Maybe I forgot some things.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any advises.&lt;BR /&gt;Best regards.&lt;/P&gt;
&lt;P&gt;Antho&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 11:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-row-in-routine/m-p/2423989#M140236</guid>
      <dc:creator>antdurif</dc:creator>
      <dc:date>2024-02-27T11:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use row in routine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-row-in-routine/m-p/2424007#M140239</link>
      <description>&lt;P&gt;I am not sure this way will work. However, you should add the dependency jar file which contain the classes you import to the routine.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Shicong&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 10:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-row-in-routine/m-p/2424007#M140239</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-02-27T10:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Use row in routine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-row-in-routine/m-p/2424046#M140240</link>
      <description>&lt;P&gt;Thanks for the answer but I'm not sure to understand where add the depedency because the classes are in the same job where I call the routine.&lt;/P&gt;
&lt;P&gt;Here a picture of my job to have a better view (the routine function call is made in the tMap_3 using other inputs datas).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="antdurif_0-1709032356771.png" style="width: 561px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160727iE995B931792B39DE/image-dimensions/561x101?v=v2" width="561" height="101" role="button" title="antdurif_0-1709032356771.png" alt="antdurif_0-1709032356771.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 11:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-row-in-routine/m-p/2424046#M140240</guid>
      <dc:creator>antdurif</dc:creator>
      <dc:date>2024-02-27T11:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Use row in routine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-row-in-routine/m-p/2424313#M140250</link>
      <description>&lt;P&gt;The problem here is the class for a row e.g. row8Struc is defined inside the job as inner class. A routine must be compilable outside of a job thats why you cannot directly use these class.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Talend Open Studio v6 the code generation was different and the job classes and the classes from the routines was inside of one huge Java project. Since Talend 7 all jobs are its own Maven projects and the formally existing one huge Java project does not exists anymore.&lt;/P&gt;
&lt;P&gt;If you want using this kind of object the only way is using reflection API (part of JDK).&lt;/P&gt;
&lt;P&gt;Please note the routines will be compiled separately to its own jar. There is no context of a job to compile these classes.&lt;/P&gt;
&lt;P&gt;What you also can do is, not writing a routine, instead write an inner class inside the job using tJavaFlex. You can always define your class in the Begin section of a tJavaFlex and use it in the flow if the tJavaFlex.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 21:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-row-in-routine/m-p/2424313#M140250</guid>
      <dc:creator>jlolling</dc:creator>
      <dc:date>2024-02-27T21:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use row in routine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-row-in-routine/m-p/2424317#M140251</link>
      <description>&lt;P&gt;Again, this will not work anymore. See my former comment about the reason. Use reflection api or use an inner class using the tJavaFlex component. You can put the tJavaFlex component between tUniqueRow_2 and tMap and class your routine class in the main part of the tJavaFlex.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 21:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-row-in-routine/m-p/2424317#M140251</guid>
      <dc:creator>jlolling</dc:creator>
      <dc:date>2024-02-27T21:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use row in routine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-row-in-routine/m-p/2424481#M140255</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/278743"&gt;@jlolling&lt;/a&gt;&amp;nbsp;for explanations and especially for the differences between v6 and v8 code generation.&lt;/P&gt;
&lt;P&gt;My other idea was to use tJava or tJavaFlex to do some of my routine function work, so your post confirms this. I will try.&lt;/P&gt;
&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 07:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-row-in-routine/m-p/2424481#M140255</guid>
      <dc:creator>antdurif</dc:creator>
      <dc:date>2024-02-28T07:49:10Z</dc:date>
    </item>
  </channel>
</rss>

