<?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: Get returned value by tSystem that using .jar in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-returned-value-by-tSystem-that-using-jar/m-p/2309973#M81148</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Another way looks like: tSystem - &amp;gt; tJavarow&amp;nbsp;-&amp;gt; tJava.&lt;/P&gt;&lt;P&gt;All components are connected as OnComponentOK connector and you are able to overwrite context variable value with following code in tJavaRow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.out.println("value 1 :----"+((String)globalMap.get("tSystem_1_OUTPUT")));&lt;/P&gt;&lt;P&gt;context.pct = (String)globalMap.get("tSystem_1_OUTPUT");&lt;/P&gt;&lt;P&gt;System.out.println("context value print1... : "+ context.pct);&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2020 09:10:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-12-01T09:10:08Z</dc:date>
    <item>
      <title>Get returned value by tSystem that using .jar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-returned-value-by-tSystem-that-using-jar/m-p/2309971#M81146</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I try to get value that is returned by tSystem that using .jar.&lt;/P&gt;&lt;P&gt;I set Standard output of tSystem as console and globlal variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my outputs looks like that : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Démarrage du job ParserPdfTest_02 a 13:00 30/11/2020.&lt;/P&gt;&lt;P&gt;[statistics] connecting to socket on port 3784&lt;/P&gt;&lt;P&gt;[statistics] connected&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;P&gt;AD376_557622&lt;/P&gt;&lt;P&gt;[statistics] disconnected&lt;/P&gt;&lt;P&gt;Job ParserPdfTest_02 terminé à 13:00 30/11/2020. [Code sortie=0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The console output return the good value but not the context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to set context variable like that :&lt;/P&gt;&lt;P&gt;context.XXXXXX=((String)globalMap.get(tSystem_1_OUTPUT))&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 12:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-returned-value-by-tSystem-that-using-jar/m-p/2309971#M81146</guid>
      <dc:creator>Gadje</dc:creator>
      <dc:date>2020-11-30T12:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get returned value by tSystem that using .jar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-returned-value-by-tSystem-that-using-jar/m-p/2309972#M81147</link>
      <description>&lt;P&gt;I found how to do.&lt;/P&gt;&lt;P&gt;I added a tSleep component between tSystem and tJava components that attributes value to context (context.fileName=((String)globalMap.get("tSystem_1_OUTPUT"))).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 13:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-returned-value-by-tSystem-that-using-jar/m-p/2309972#M81147</guid>
      <dc:creator>Gadje</dc:creator>
      <dc:date>2020-11-30T13:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get returned value by tSystem that using .jar</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-returned-value-by-tSystem-that-using-jar/m-p/2309973#M81148</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Another way looks like: tSystem - &amp;gt; tJavarow&amp;nbsp;-&amp;gt; tJava.&lt;/P&gt;&lt;P&gt;All components are connected as OnComponentOK connector and you are able to overwrite context variable value with following code in tJavaRow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.out.println("value 1 :----"+((String)globalMap.get("tSystem_1_OUTPUT")));&lt;/P&gt;&lt;P&gt;context.pct = (String)globalMap.get("tSystem_1_OUTPUT");&lt;/P&gt;&lt;P&gt;System.out.println("context value print1... : "+ context.pct);&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 09:10:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-returned-value-by-tSystem-that-using-jar/m-p/2309973#M81148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-01T09:10:08Z</dc:date>
    </item>
  </channel>
</rss>

