<?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 [resolved] Using TJavaRow for conditional flow control in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Using-TJavaRow-for-conditional-flow-control/m-p/2280961#M55650</link>
    <description>&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;Hello everyone,&lt;BR /&gt; &lt;BR /&gt; I am comparatively new to Talend and am trying to establish certain checks towards my data integration process which picks up data from an SFTP and copies it to Redshift Datawarehouse.&lt;BR /&gt; &lt;BR /&gt;As a part of this process, I intend to validate my column names to ensure that before I pick up my data, the header names are validated. To do the same, I am reading the header row of my file using&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt; tFileInputFullRow (with limit=1) and want to use TJavaRow to do a boolean check on the variable name.&lt;BR /&gt; &amp;nbsp;tFileInputFullRow----tJavaRow--tJava--if(false)--take action&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If(True)&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tFileInputDelimited&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; To be more specific, I am facing issues in the step where we use TJavaRow component to write the Java query:&lt;BR /&gt; &lt;BR /&gt; &lt;U&gt;&lt;B&gt;context.result= line1.equalsIgnoreCase("col1,col2,col3");&lt;/B&gt;&lt;/U&gt;&lt;BR /&gt; &lt;BR /&gt; I am using the following query:&lt;BR /&gt; &lt;BR /&gt; "Boolean result = false;&lt;BR /&gt; globalMap.put("result",result);&lt;BR /&gt; &lt;BR /&gt; &lt;U&gt;&lt;B&gt;result=row4.equalsIgnoreCase("list_id,list_name,campaign_id,template_name,event,event_date,email");&lt;/B&gt;&lt;/U&gt;&lt;BR /&gt; "&lt;BR /&gt; &lt;BR /&gt; Could you kindly help me out in sorting the variable result to get the desired output. &lt;BR /&gt;I guess there is some problem in the underlined part of the Java code.&lt;BR /&gt; &lt;BR /&gt; Thanks and Regards,&lt;BR /&gt; Shobhit&lt;BR /&gt; &lt;BR /&gt; &lt;/FONT&gt;&lt;/FONT&gt;</description>
    <pubDate>Thu, 11 Dec 2014 06:57:58 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2014-12-11T06:57:58Z</dc:date>
    <item>
      <title>[resolved] Using TJavaRow for conditional flow control</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Using-TJavaRow-for-conditional-flow-control/m-p/2280961#M55650</link>
      <description>&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;Hello everyone,&lt;BR /&gt; &lt;BR /&gt; I am comparatively new to Talend and am trying to establish certain checks towards my data integration process which picks up data from an SFTP and copies it to Redshift Datawarehouse.&lt;BR /&gt; &lt;BR /&gt;As a part of this process, I intend to validate my column names to ensure that before I pick up my data, the header names are validated. To do the same, I am reading the header row of my file using&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt; tFileInputFullRow (with limit=1) and want to use TJavaRow to do a boolean check on the variable name.&lt;BR /&gt; &amp;nbsp;tFileInputFullRow----tJavaRow--tJava--if(false)--take action&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If(True)&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tFileInputDelimited&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; To be more specific, I am facing issues in the step where we use TJavaRow component to write the Java query:&lt;BR /&gt; &lt;BR /&gt; &lt;U&gt;&lt;B&gt;context.result= line1.equalsIgnoreCase("col1,col2,col3");&lt;/B&gt;&lt;/U&gt;&lt;BR /&gt; &lt;BR /&gt; I am using the following query:&lt;BR /&gt; &lt;BR /&gt; "Boolean result = false;&lt;BR /&gt; globalMap.put("result",result);&lt;BR /&gt; &lt;BR /&gt; &lt;U&gt;&lt;B&gt;result=row4.equalsIgnoreCase("list_id,list_name,campaign_id,template_name,event,event_date,email");&lt;/B&gt;&lt;/U&gt;&lt;BR /&gt; "&lt;BR /&gt; &lt;BR /&gt; Could you kindly help me out in sorting the variable result to get the desired output. &lt;BR /&gt;I guess there is some problem in the underlined part of the Java code.&lt;BR /&gt; &lt;BR /&gt; Thanks and Regards,&lt;BR /&gt; Shobhit&lt;BR /&gt; &lt;BR /&gt; &lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 11 Dec 2014 06:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Using-TJavaRow-for-conditional-flow-control/m-p/2280961#M55650</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-12-11T06:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Using TJavaRow for conditional flow control</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Using-TJavaRow-for-conditional-flow-control/m-p/2280962#M55651</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;To access the input column, use this expression: 
&lt;BR /&gt; 
&lt;PRE&gt;Boolean result=false;&lt;BR /&gt;result="list_id,list_name,campaign_id,template_name,event,event_date,email".equalsIgnoreCase(input_row.line);&lt;BR /&gt;globalMap.put("result",result);&lt;/PRE&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 11 Dec 2014 08:55:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Using-TJavaRow-for-conditional-flow-control/m-p/2280962#M55651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-11T08:55:38Z</dc:date>
    </item>
  </channel>
</rss>

