<?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 tSystem AND run if in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tSystem-AND-run-if/m-p/2319774#M89983</link>
    <description>Hello, 
&lt;BR /&gt;I want to use a procedure run if when I run in my component tSystem_1 a script, which finishes successfully. 
&lt;BR /&gt; 
&lt;BR /&gt;This is the output of the script in the tSystem component: 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Everything is Ok&lt;BR /&gt;Files: 20&lt;BR /&gt;Size: 64479954&lt;BR /&gt;Compressed: 6950205&lt;BR /&gt; disconnected&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;The If-run condition : 
&lt;BR /&gt; 
&lt;PRE&gt;((String)globalMap.get("tSystem_1_OUTPUT")).matches(".*Compressed.*")&lt;/PRE&gt; 
&lt;BR /&gt;But I have an error : 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Exception in component tSystem_1&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt; at bader_fpo.test_unarchive_7z_0_1.test_unarchive_7z.tFileList_1Process(test_unarchive_7z.java:317)&lt;BR /&gt; at bader_fpo.test_unarchive_7z_0_1.test_unarchive_7z.runJobInTOS(test_unarchive_7z.java:2599)&lt;BR /&gt; at bader_fpo.test_unarchive_7z_0_1.test_unarchive_7z.main(test_unarchive_7z.java:2507)&lt;BR /&gt;Everything is Ok&lt;BR /&gt;Files: 20&lt;BR /&gt;Size: 64479954&lt;BR /&gt;Compressed: 6950205&lt;BR /&gt; disconnected]&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Why this problem ? 
&lt;BR /&gt;I helped me with this topic : 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCkUPCA0" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Trigger-another-job-when-tSystem-output-has-certain-text/td-p/74242&lt;/A&gt; 
&lt;BR /&gt;Thank you for you help. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCJI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140267iCDE0BAC86D0845C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCJI.png" alt="0683p000009MCJI.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Sat, 16 Nov 2024 14:20:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T14:20:01Z</dc:date>
    <item>
      <title>tSystem AND run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-AND-run-if/m-p/2319774#M89983</link>
      <description>Hello, 
&lt;BR /&gt;I want to use a procedure run if when I run in my component tSystem_1 a script, which finishes successfully. 
&lt;BR /&gt; 
&lt;BR /&gt;This is the output of the script in the tSystem component: 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Everything is Ok&lt;BR /&gt;Files: 20&lt;BR /&gt;Size: 64479954&lt;BR /&gt;Compressed: 6950205&lt;BR /&gt; disconnected&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;The If-run condition : 
&lt;BR /&gt; 
&lt;PRE&gt;((String)globalMap.get("tSystem_1_OUTPUT")).matches(".*Compressed.*")&lt;/PRE&gt; 
&lt;BR /&gt;But I have an error : 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Exception in component tSystem_1&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt; at bader_fpo.test_unarchive_7z_0_1.test_unarchive_7z.tFileList_1Process(test_unarchive_7z.java:317)&lt;BR /&gt; at bader_fpo.test_unarchive_7z_0_1.test_unarchive_7z.runJobInTOS(test_unarchive_7z.java:2599)&lt;BR /&gt; at bader_fpo.test_unarchive_7z_0_1.test_unarchive_7z.main(test_unarchive_7z.java:2507)&lt;BR /&gt;Everything is Ok&lt;BR /&gt;Files: 20&lt;BR /&gt;Size: 64479954&lt;BR /&gt;Compressed: 6950205&lt;BR /&gt; disconnected]&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Why this problem ? 
&lt;BR /&gt;I helped me with this topic : 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCkUPCA0" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Trigger-another-job-when-tSystem-output-has-certain-text/td-p/74242&lt;/A&gt; 
&lt;BR /&gt;Thank you for you help. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCJI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140267iCDE0BAC86D0845C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCJI.png" alt="0683p000009MCJI.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 14:20:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-AND-run-if/m-p/2319774#M89983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: tSystem AND run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-AND-run-if/m-p/2319775#M89984</link>
      <description>I'd try sending yourself an email with ((String)globalMap.get("tSystem_1_OUTPUT")) as the Message to see what is being output.  Your problem could be you're trying to search information that just isn't in the output.&lt;BR /&gt;&lt;PRE&gt;"Err Msg: "+((String)globalMap.get("tSystem_1_ERROR_MESSAGE"))+"\n"&lt;BR /&gt;+"Err Output:" +((String)globalMap.get("tSystem_1_ERROROUTPUT"))+"\n"&lt;BR /&gt;+"Exit Val:"+((Integer)globalMap.get("tSystem_1_EXIT_VALUE"))+"\n"&lt;BR /&gt;+"Output:"+((String)globalMap.get("tSystem_1_OUTPUT"))+"\n"&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jun 2008 22:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-AND-run-if/m-p/2319775#M89984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-17T22:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: tSystem AND run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-AND-run-if/m-p/2319776#M89985</link>
      <description>Also, check what you have "Standard Output" and "Error Output" set to for tSystem 
&lt;BR /&gt;For me, "to console" sends the info to the Run tab (and command window) only. And this is what gets sent as an email 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Err Msg: null&lt;BR /&gt;Err Output:null&lt;BR /&gt;Exit Val:0&lt;BR /&gt;Output:null&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Try setting them to "to global variable", if you haven't done that already. 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Err Msg: null&lt;BR /&gt;Err Output:null&lt;BR /&gt;Exit Val:0&lt;BR /&gt;Output:&lt;BR /&gt;BloombergReformat Application - Ver 1.0 - March 26, 2008 Run time : 6/17/2008 5:31:18 PM&lt;BR /&gt;Application terminated on 6/17/2008 5:31:18 PM.&lt;BR /&gt;Number of columns processed: 78&lt;BR /&gt;Number of rows processed: 9&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 17 Jun 2008 22:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-AND-run-if/m-p/2319776#M89985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-17T22:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: tSystem AND run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-AND-run-if/m-p/2319777#M89986</link>
      <description>Thank you for your sugestion. 
&lt;BR /&gt;Now, in parameters of tSystem, I choose 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Standart Output : to global variable&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I did a test with a condition "main" and a messagebox and it works ! 
&lt;BR /&gt;But when I want to use run-if condition with that : 
&lt;PRE&gt;((String)globalMap.get("tSystem_1_OUTPUT")).matches(".*Compressed.*")&lt;/PRE&gt; 
&lt;BR /&gt;It doesn't work ! 
&lt;BR /&gt;Help me please</description>
      <pubDate>Wed, 18 Jun 2008 09:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-AND-run-if/m-p/2319777#M89986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-18T09:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: tSystem AND run if</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSystem-AND-run-if/m-p/2319778#M89987</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Now, in parameters of tSystem, I choose 
     &lt;BLOCKQUOTE&gt; 
      &lt;TABLE border="1"&gt; 
       &lt;TBODY&gt; 
        &lt;TR&gt; 
         &lt;TD&gt;Standart Output : to global variable&lt;/TD&gt; 
        &lt;/TR&gt; 
       &lt;/TBODY&gt; 
      &lt;/TABLE&gt; 
     &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;I did a test with a condition "main" and a messagebox and it works !&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Personally, I would do it for "Error Output" as well, so you don't get another NullPointerException if there is an error in tSystem 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;But when I want to use run-if condition with that : &lt;PRE&gt;((String)globalMap.get("tSystem_1_OUTPUT")).matches(".*Compressed.*")&lt;/PRE&gt;&lt;BR /&gt;It doesn't work !&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;My guess would be its the periods between your matches parentheses. 
&lt;BR /&gt;Maybe this will work? 
&lt;BR /&gt; 
&lt;PRE&gt;((String)globalMap.get("tSystem_1_OUTPUT")).matches("*Compressed*")&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jun 2008 21:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSystem-AND-run-if/m-p/2319778#M89987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-18T21:48:12Z</dc:date>
    </item>
  </channel>
</rss>

