<?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: Making a conditional flow based on value from tExtractJSONFields component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Making-a-conditional-flow-based-on-value-from-tExtractJSONFields/m-p/2513450#M147433</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/321951"&gt;@pthomas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can give you 2 options :&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 - Use a tFilterRow and use the column "status" with function "equals" and put in your value at the end : "OK"&lt;/P&gt;&lt;P&gt;This way only rows with the value "OK" will be filtered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 - You can still use an "if" trigger but use&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;"OK".equals(row1.status) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And yes you are right the [ ] around "OK" is the tLogRow printing it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Quentin&lt;/P&gt;</description>
    <pubDate>Tue, 08 Apr 2025 07:45:35 GMT</pubDate>
    <dc:creator>quentin-vigne</dc:creator>
    <dc:date>2025-04-08T07:45:35Z</dc:date>
    <item>
      <title>Making a conditional flow based on value from tExtractJSONFields component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Making-a-conditional-flow-based-on-value-from-tExtractJSONFields/m-p/2513406#M147432</link>
      <description>&lt;P&gt;I have an tExtractJSONFields that extracts the fields that I need. I can use those with no issues. But the api that I am getting json from only allows 5 results, so the next 45 or so all have a different json format.&lt;/P&gt;&lt;P&gt;The good results contain a status column that when I parse and print to a tLogRow, shows as ["OK"], I assume the brackets are a tLogRow thing as they don't show if I write that value later in the flow.&lt;BR /&gt;The bad results have no status column. The result is a status column with a value of [], I assume null.&lt;/P&gt;&lt;P&gt;How can I write a (Trigger-&amp;gt;Run If) to only continue when the status column is equal to ["OK"], again not sure I need the brackets.&lt;/P&gt;&lt;P&gt;I've tried to trap the bad results with;&lt;BR /&gt;(String)globalMap.get("tExtractJSONFields_1.status") != "OK"&lt;BR /&gt;(String)globalMap.get("row1.status") != "OK"&lt;BR /&gt;-- row1 pointing to a tLogRow component.&lt;/P&gt;&lt;P&gt;I then have a tMsgBox that I try to print a value of status by making sure it is compared to a value I know will fail ("...status" != "blue") and it shows null when I try;&lt;BR /&gt;(String)globalMap.get("tExtractJSONFields_1.status")&lt;BR /&gt;(String)globalMap.get("row1.status")&lt;BR /&gt;The tMsgBox shows status as null even when the tLogRow prints status as "OK" !?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 17:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Making-a-conditional-flow-based-on-value-from-tExtractJSONFields/m-p/2513406#M147432</guid>
      <dc:creator>pthomas</dc:creator>
      <dc:date>2025-04-07T17:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Making a conditional flow based on value from tExtractJSONFields component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Making-a-conditional-flow-based-on-value-from-tExtractJSONFields/m-p/2513450#M147433</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/321951"&gt;@pthomas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can give you 2 options :&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 - Use a tFilterRow and use the column "status" with function "equals" and put in your value at the end : "OK"&lt;/P&gt;&lt;P&gt;This way only rows with the value "OK" will be filtered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 - You can still use an "if" trigger but use&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;"OK".equals(row1.status) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And yes you are right the [ ] around "OK" is the tLogRow printing it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Quentin&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 07:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Making-a-conditional-flow-based-on-value-from-tExtractJSONFields/m-p/2513450#M147433</guid>
      <dc:creator>quentin-vigne</dc:creator>
      <dc:date>2025-04-08T07:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Making a conditional flow based on value from tExtractJSONFields component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Making-a-conditional-flow-based-on-value-from-tExtractJSONFields/m-p/2513518#M147437</link>
      <description>&lt;P&gt;Thanks, I went with option #1, couldn't get the If part to work but tFilterRow splits the flow like I need.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 13:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Making-a-conditional-flow-based-on-value-from-tExtractJSONFields/m-p/2513518#M147437</guid>
      <dc:creator>pthomas</dc:creator>
      <dc:date>2025-04-08T13:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Making a conditional flow based on value from tExtractJSONFields component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Making-a-conditional-flow-based-on-value-from-tExtractJSONFields/m-p/2513742#M147447</link>
      <description>&lt;P&gt;Hey quentin, I'm not as in the clear as I thought.&amp;nbsp; The issue I am having and trying to trap, is when a rest object returns a "fault", it does so with different columns.&amp;nbsp; I'd expect that to result in a column (status) being null or at least "not equal" to "OK",&amp;nbsp; But as you can see in the tLogRow, whether "OK" is the status or nothing is, it all fails.&lt;/P&gt;&lt;P&gt;I've tried "OK" and null and get the same results.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pthomas_0-1744221183513.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/179516i080B0C60C7BCF701/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pthomas_0-1744221183513.png" alt="pthomas_0-1744221183513.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pthomas_1-1744221314716.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/179517iBB54CA27A17CF7D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pthomas_1-1744221314716.png" alt="pthomas_1-1744221314716.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 17:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Making-a-conditional-flow-based-on-value-from-tExtractJSONFields/m-p/2513742#M147447</guid>
      <dc:creator>pthomas</dc:creator>
      <dc:date>2025-04-09T17:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Making a conditional flow based on value from tExtractJSONFields component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Making-a-conditional-flow-based-on-value-from-tExtractJSONFields/m-p/2513793#M147451</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/321951"&gt;@pthomas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could probably add a tMap before the tFilterRow and try to replace null values with something else?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add a function like this :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;(row1.status == null || StringHandling.LEN(StringHandling.TRIM(row1.status)) == 0 ) ? "UNKNOWN" : status&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way you either have "OK" / "UNKNOWN" / Other values that are not null or empty and the tFilterRow have something to "use"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Quentin&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 08:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Making-a-conditional-flow-based-on-value-from-tExtractJSONFields/m-p/2513793#M147451</guid>
      <dc:creator>quentin-vigne</dc:creator>
      <dc:date>2025-04-10T08:46:35Z</dc:date>
    </item>
  </channel>
</rss>

