<?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 NiFi Count Fileflows via attribute in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Count-Fileflows-via-attribute/m-p/178860#M64762</link>
    <description>&lt;P&gt;I'm trying to achieve a simple count on fileflows via attribute. The idea is to count to 100, then execute an email. How do I achieve this?&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2017 21:56:32 GMT</pubDate>
    <dc:creator>jpetro416</dc:creator>
    <dc:date>2017-07-12T21:56:32Z</dc:date>
    <item>
      <title>NiFi Count Fileflows via attribute</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Count-Fileflows-via-attribute/m-p/178860#M64762</link>
      <description>&lt;P&gt;I'm trying to achieve a simple count on fileflows via attribute. The idea is to count to 100, then execute an email. How do I achieve this?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 21:56:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Count-Fileflows-via-attribute/m-p/178860#M64762</guid>
      <dc:creator>jpetro416</dc:creator>
      <dc:date>2017-07-12T21:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Count Fileflows via attribute</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Count-Fileflows-via-attribute/m-p/178861#M64763</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/13322/jpetro416.html" nodeid="13322" target="_blank"&gt;@Joe&lt;/A&gt;&lt;P&gt;One way to accomplish this is via a groovy script, created by &lt;A rel="user" href="https://community.cloudera.com/users/641/mburgess.html" nodeid="641" target="_blank"&gt;@Matt Burgess&lt;/A&gt;, ran in the ExecuteScript processor. The script waits until there are 100 flow files in the incoming connection and then sends 99 out the success relationship and the 100th flow file out the failure which connects to a PutEmail process, which sends an email, and then passes the 100th file back into the normal flow path.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="27457-screen-shot-2017-08-14-at-42448-pm.png" style="width: 772px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19453iBB09A291CE74F7DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="27457-screen-shot-2017-08-14-at-42448-pm.png" alt="27457-screen-shot-2017-08-14-at-42448-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Groovy script in the ExecuteScript processor, this script would go into the Script Body property:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="27458-screen-shot-2017-08-14-at-42603-pm.png" style="width: 408px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19454iE31029C29E8DBECC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="27458-screen-shot-2017-08-14-at-42603-pm.png" alt="27458-screen-shot-2017-08-14-at-42603-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 09:29:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Count-Fileflows-via-attribute/m-p/178861#M64763</guid>
      <dc:creator>Wynner</dc:creator>
      <dc:date>2019-08-18T09:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Count Fileflows via attribute</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Count-Fileflows-via-attribute/m-p/283615#M64764</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/users/641/mburgess.html" target="_blank" rel="noopener user"&gt;@Matt Burgess&lt;/A&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35453"&gt;@Wynner&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I have a similar kind of issue while counting the flowfiles from the compresscontent processor , my use case is&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a flow in which I wait for 5 files that&amp;nbsp; should come out from&amp;nbsp; the respective CompressContentProcessors, after which I start another processor. if the count is less or more than 5, I have to send out an email.if the count is 5 i will continue with the flow. I have tried using unpack content processor but it doesnt support the format that i have my files in . Can anyone please suggest what would be the good option to get this thing done?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aquib&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 14:26:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Count-Fileflows-via-attribute/m-p/283615#M64764</guid>
      <dc:creator>aquib_mohammed</dc:creator>
      <dc:date>2019-11-21T14:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Count Fileflows via attribute</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Count-Fileflows-via-attribute/m-p/284895#M64765</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/51836"&gt;@aquib_mohammed&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the format of the files?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 15:22:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Count-Fileflows-via-attribute/m-p/284895#M64765</guid>
      <dc:creator>Wynner</dc:creator>
      <dc:date>2019-12-05T15:22:04Z</dc:date>
    </item>
  </channel>
</rss>

