<?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: Count number of incoming flow files in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Count-number-of-incoming-flow-files/m-p/377887#M243370</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105620"&gt;@Fanxxx&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;How I would do the first POC:&lt;BR /&gt;1) &lt;STRONG&gt;GetMongoRecord&lt;/STRONG&gt;: execute the count on the first table. Using the property "&lt;EM&gt;Query Output Attribute&lt;/EM&gt;" you save that value directly as an attribute.&lt;BR /&gt;2) connected to the success queue another &lt;STRONG&gt;GetMongoRecord&lt;/STRONG&gt;: execute the count on the second table. Using the property "&lt;EM&gt;Query Output Attribute&lt;/EM&gt;" you save that value directly as an attribute.&amp;nbsp;&lt;BR /&gt;3) connected to the success queue an &lt;STRONG&gt;RouteOnAttribute&lt;/STRONG&gt;: here you define a rules --&amp;gt; if count1=count2, do what you want to do, otherwise call the logic for the insert, as you said. (using NiFi Expression language:&lt;EM&gt; ${attribute1:equals(${attribute2})}&lt;/EM&gt; )&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2023 06:53:50 GMT</pubDate>
    <dc:creator>cotopaul</dc:creator>
    <dc:date>2023-10-19T06:53:50Z</dc:date>
  </channel>
</rss>

