<?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: NiFi - Script count fileFlows Groovy in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Script-count-fileFlows-Groovy/m-p/210329#M172271</link>
    <description>&lt;P&gt;I'm not sure if I fully understand how your downstream flow would work when there are &amp;lt; 9 flow files available to ExecuteScript, but here's something to try (note that you can use anything greater than 9 in place of the "10" below):&lt;/P&gt;&lt;PRE&gt;def flowFiles = session.get(10)&lt;BR /&gt;if(flowFiles.size() &amp;gt;= 9) {&lt;BR /&gt;   session.remove(flowFiles)&lt;BR /&gt;} else {&lt;BR /&gt;   session.transfer(flowFiles,  REL_SUCCESS)&lt;BR /&gt;}
&lt;/PRE&gt;</description>
    <pubDate>Tue, 16 Oct 2018 01:59:47 GMT</pubDate>
    <dc:creator>mburgess</dc:creator>
    <dc:date>2018-10-16T01:59:47Z</dc:date>
  </channel>
</rss>

