<?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: Trigger another job, when tSystem output has certain text?. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Trigger-another-job-when-tSystem-output-has-certain-text/m-p/2249121#M33763</link>
    <description>can you tag it as solved or/and explain the solution.&lt;BR /&gt;</description>
    <pubDate>Thu, 16 Jan 2020 09:37:26 GMT</pubDate>
    <dc:creator>fdenis</dc:creator>
    <dc:date>2020-01-16T09:37:26Z</dc:date>
    <item>
      <title>Trigger another job, when tSystem output has certain text?.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trigger-another-job-when-tSystem-output-has-certain-text/m-p/2249119#M33761</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I want to trigger a stored procedure, when I run in tSystems an external perl script, which finishes successfully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the output of the perl script in the tSystem component:&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Start loading data at: 2008-04-17 10:46:23&lt;BR /&gt;Preparing load of data in /path/to/file/file.TXT:&lt;BR /&gt;&lt;BR /&gt;Records inserted: 672&lt;BR /&gt;Finished loading data at: 2008-04-17 10:46:24&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;So I used an If-Trigger connection and I tried this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;((String)globalMap.get("tSystem_1_OUTPUT")) =="Finished loading data"&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;But nothing happens .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess you will suggest me to use regex, but I couldn't figure out how to use it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;iosman&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trigger-another-job-when-tSystem-output-has-certain-text/m-p/2249119#M33761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger another job, when tSystem output has certain text?.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trigger-another-job-when-tSystem-output-has-certain-text/m-p/2249120#M33762</link>
      <description>you have to use string1.equals(string2) in java&lt;BR /&gt;&lt;BR /&gt;but ((String)globalMap.get("tSystem_1_OUTPUT")) contain all the output&lt;BR /&gt;so you want to fount the position of your string.&lt;BR /&gt;&lt;A href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#contains(java.lang.CharSequence" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#contains(java.lang.CharSequence&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;your if condition must be:&lt;BR /&gt;((String)globalMap.get("tSystem_1_OUTPUT")).contains("Finished loading data")&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jan 2020 09:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trigger-another-job-when-tSystem-output-has-certain-text/m-p/2249120#M33762</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2020-01-14T09:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger another job, when tSystem output has certain text?.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trigger-another-job-when-tSystem-output-has-certain-text/m-p/2249121#M33763</link>
      <description>can you tag it as solved or/and explain the solution.&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Jan 2020 09:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trigger-another-job-when-tSystem-output-has-certain-text/m-p/2249121#M33763</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2020-01-16T09:37:26Z</dc:date>
    </item>
  </channel>
</rss>

