<?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>question Re: Trigger processor based on the condition - Nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Trigger-processor-based-on-the-condition-Nifi/m-p/314992#M226278</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/55311"&gt;@Shu_ashu&lt;/a&gt;&amp;nbsp;I tried this below expression for two job names in my flow and it is throwing error. Could you help?&lt;/P&gt;&lt;P&gt;Options I tried:&lt;/P&gt;&lt;P&gt;```${N_JOB:equalsIgnoreCase('DWDMBL0D','DWDMBL0F'):and(${LAST_RUN:equals('${custom_date}')}):and(${C_CURR_STA:equalsIgnoreCase('C')})}```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```${N_JOB:equalsIgnoreCase("DWDMBL0D","DWDMBL0F"):and(${LAST_RUN:equals('${custom_date}')}):and(${C_CURR_STA:equalsIgnoreCase('C')})}```&lt;/P&gt;</description>
    <pubDate>Tue, 20 Apr 2021 21:25:24 GMT</pubDate>
    <dc:creator>ang_coder</dc:creator>
    <dc:date>2021-04-20T21:25:24Z</dc:date>
    <item>
      <title>Trigger processor based on the condition - Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Trigger-processor-based-on-the-condition-Nifi/m-p/186728#M148830</link>
      <description>&lt;P&gt;I want to create a generic single flow which should run for multiple tables and will upload the result flow files to google cloud and azure blob .&lt;/P&gt;&lt;P&gt;I have created the flow setup on nifi but what I want to achieve is that I dont want the azure upload for all the tables .Azure upload should execute only for specific tables and upload to google cloud for all the tables .&lt;/P&gt;&lt;P&gt;Any idea on how to achieve the conditional trigger based on any flag ? &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 12:01:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Trigger-processor-based-on-the-condition-Nifi/m-p/186728#M148830</guid>
      <dc:creator>amittal6_</dc:creator>
      <dc:date>2018-05-10T12:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger processor based on the condition - Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Trigger-processor-based-on-the-condition-Nifi/m-p/186729#M148831</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/76186/amittal6.html" nodeid="76186" target="_blank"&gt;@aman
 mittal
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use RouteOnAttribute Processor to route on the required tables into AzureBlobStorage ..etc.&lt;/P&gt;&lt;P&gt;Below is the sample flow for demonstration&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="72726-flow.png" style="width: 2067px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18785iD528DBE3921A8CAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="72726-flow.png" alt="72726-flow.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this flow we are doing listing all the tables and Generating sql queries that fetches pages then ExecutingSql queries that are generated by GenerateTableFetch Processor.&lt;/P&gt;&lt;P&gt;As you need to &lt;STRONG&gt;load all the tables&lt;/STRONG&gt; to &lt;STRONG&gt;GoogleCloud&lt;/STRONG&gt; so fork the Success relation from ExecuteSql, in this step we are storing all the tables into Google Cloud.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In another fork&lt;/STRONG&gt; from ExecuteSql processor feed the Success relationship to RouteOnAttribute Processor and add new property as&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AzureBlob Tables
&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;${db.table.name:equals("tablename1","tablename2")} //db.table.name attribute is added from List database table processor &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;(or)&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;${db.table.name:toLower():equals("tablename1","tablename2")} //table names are not case sensitive in this EL&lt;/PRE&gt;&lt;P&gt;Use &lt;STRONG&gt;your attribute&lt;/STRONG&gt; that having&lt;STRONG&gt; table name&lt;/STRONG&gt; in the place of (db.table.name attribute) and Add all the required tables for azure in the above list. &lt;/P&gt;&lt;P&gt;Then use the same property name relationship to feed to Azure Blob Storage processor.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="72727-roa.png" style="width: 1772px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18786i87F1BA2961CF353E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="72727-roa.png" alt="72727-roa.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;If the Answer addressed your question, &lt;STRONG&gt;Click on Accept button below to accept the answer&lt;/STRONG&gt;, That would be great help to Community users to find solution quickly for these kind of issues.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:10:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Trigger-processor-based-on-the-condition-Nifi/m-p/186729#M148831</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T08:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger processor based on the condition - Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Trigger-processor-based-on-the-condition-Nifi/m-p/186730#M148832</link>
      <description>&lt;P&gt;Thanks alot for such a great help 1 it works !!&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 16:46:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Trigger-processor-based-on-the-condition-Nifi/m-p/186730#M148832</guid>
      <dc:creator>amittal6_</dc:creator>
      <dc:date>2018-05-11T16:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger processor based on the condition - Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Trigger-processor-based-on-the-condition-Nifi/m-p/186731#M148833</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/189916/trigger-processor-based-on-the-condition-nifi.html?childToView=191006#"&gt;@Shu&lt;/A&gt; is there any way we can have run time forking based on any of the flag . Because I need to do this type of flow for more than 2k tables in my db.&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 12:42:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Trigger-processor-based-on-the-condition-Nifi/m-p/186731#M148833</guid>
      <dc:creator>amittal6_</dc:creator>
      <dc:date>2018-05-14T12:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger processor based on the condition - Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Trigger-processor-based-on-the-condition-Nifi/m-p/314992#M226278</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/55311"&gt;@Shu_ashu&lt;/a&gt;&amp;nbsp;I tried this below expression for two job names in my flow and it is throwing error. Could you help?&lt;/P&gt;&lt;P&gt;Options I tried:&lt;/P&gt;&lt;P&gt;```${N_JOB:equalsIgnoreCase('DWDMBL0D','DWDMBL0F'):and(${LAST_RUN:equals('${custom_date}')}):and(${C_CURR_STA:equalsIgnoreCase('C')})}```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```${N_JOB:equalsIgnoreCase("DWDMBL0D","DWDMBL0F"):and(${LAST_RUN:equals('${custom_date}')}):and(${C_CURR_STA:equalsIgnoreCase('C')})}```&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 21:25:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Trigger-processor-based-on-the-condition-Nifi/m-p/314992#M226278</guid>
      <dc:creator>ang_coder</dc:creator>
      <dc:date>2021-04-20T21:25:24Z</dc:date>
    </item>
  </channel>
</rss>

