<?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 How to trigger different components based on data in Redshift table ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-trigger-different-components-based-on-data-in-Redshift/m-p/2306874#M78367</link>
    <description>&lt;P&gt;I have a table in redshift with a few columns. The data in column A defines the execution order.&lt;/P&gt;&lt;P&gt;If A = Red then I need to write the output to a file. If A = Yellow then I need to load the data into another table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I implement this requirement ?&lt;/P&gt;&lt;P&gt;Which component can I use which sends the action to the required path according to the data in the table?&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jan 2018 17:04:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-15T17:04:46Z</dc:date>
    <item>
      <title>How to trigger different components based on data in Redshift table ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-trigger-different-components-based-on-data-in-Redshift/m-p/2306874#M78367</link>
      <description>&lt;P&gt;I have a table in redshift with a few columns. The data in column A defines the execution order.&lt;/P&gt;&lt;P&gt;If A = Red then I need to write the output to a file. If A = Yellow then I need to load the data into another table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I implement this requirement ?&lt;/P&gt;&lt;P&gt;Which component can I use which sends the action to the required path according to the data in the table?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 17:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-trigger-different-components-based-on-data-in-Redshift/m-p/2306874#M78367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-15T17:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger different components based on data in Redshift table ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-trigger-different-components-based-on-data-in-Redshift/m-p/2306875#M78368</link>
      <description>&lt;P&gt;You can use a tMap for this. You can have an output for each scenario and use the filtering functionality of the tMap. This page here might help.....&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.talend.com/reader/QgrwjIQJDI2TJ1pa2caRQA/rvIDyyz_tAaUI42YybAZ6w" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/QgrwjIQJDI2TJ1pa2caRQA/rvIDyyz_tAaUI42YybAZ6w&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 17:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-trigger-different-components-based-on-data-in-Redshift/m-p/2306875#M78368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-15T17:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger different components based on data in Redshift table ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-trigger-different-components-based-on-data-in-Redshift/m-p/2306876#M78369</link>
      <description>tMap will help me filter the data and send different streams of the data.
&lt;BR /&gt;
&lt;BR /&gt;I don't want to filter out and separate the data and then use it.
&lt;BR /&gt;
&lt;BR /&gt;I just want to trigger different components based upon the content of the
&lt;BR /&gt;data. I don't need to carry forward the data.
&lt;BR /&gt;
&lt;BR /&gt;For example, if a certain value exists in the table. I need to send an
&lt;BR /&gt;email. Else I need to write generate a file. Else ... Else...
&lt;BR /&gt;And similarity more conditions and their subsequent actions.
&lt;BR /&gt;
&lt;BR /&gt;Can this be achieved through tMap ?
&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jan 2018 17:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-trigger-different-components-based-on-data-in-Redshift/m-p/2306876#M78369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-15T17:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger different components based on data in Redshift table ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-trigger-different-components-based-on-data-in-Redshift/m-p/2306877#M78370</link>
      <description>&lt;P&gt;OK. Then all you need to do is connect your database component (or whatever brings your data in) to a tFlowToIterate component. This will, for every row, create globalMap variables for every column. So if you have a row with columns called "col1", "col2" and "col3" and your row feeding the tFlowToIterate is called "row1", your globalMap variables will be available using the following code.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming "col1" is a String&lt;/P&gt;&lt;PRE&gt;((String)globalMap.get("row1.col1"))&lt;/PRE&gt;&lt;P&gt;Assuming "col2" is an Integer&lt;/P&gt;&lt;PRE&gt;((Integer)globalMap.get("row1.col2"))&lt;/PRE&gt;&lt;P&gt;Assuming "col3" is a Long&lt;/P&gt;&lt;PRE&gt;((Long)globalMap.get("row1.col1"))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, connect your tFlowToIterate to a tJava using an iterate link. Then from the tJava use RunIf links and use the globalMap variables&amp;nbsp;as the values for the IF condition logic. The RunIfs will be used to point to the components that you want run conditionally.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 20:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-trigger-different-components-based-on-data-in-Redshift/m-p/2306877#M78370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-15T20:39:48Z</dc:date>
    </item>
  </channel>
</rss>

