<?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: How can I WAIT on two processors in NIFI? Final processor needs to check for both before continuing... in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-WAIT-on-two-processors-in-NIFI-Final-processor/m-p/158836#M121227</link>
    <description>&lt;P&gt;Thank you, this is exactly the type of workaround I was looking for!&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2017 03:20:13 GMT</pubDate>
    <dc:creator>jpetro416</dc:creator>
    <dc:date>2017-03-22T03:20:13Z</dc:date>
    <item>
      <title>How can I WAIT on two processors in NIFI? Final processor needs to check for both before continuing...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-WAIT-on-two-processors-in-NIFI-Final-processor/m-p/158832#M121223</link>
      <description>&lt;P&gt;Hi, I'm working on creating a flow like this:&lt;/P&gt;&lt;P&gt;1st processor does work and goes into a funnel&lt;/P&gt;&lt;P&gt;2nd processor does work and routes to same funnel&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Final processor needs to check for both before continuing. How do I accomplish this?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE: I do not need the actual file flows, they are only used as trigger files.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 02:01:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-WAIT-on-two-processors-in-NIFI-Final-processor/m-p/158832#M121223</guid>
      <dc:creator>jpetro416</dc:creator>
      <dc:date>2017-03-16T02:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I WAIT on two processors in NIFI? Final processor needs to check for both before continuing...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-WAIT-on-two-processors-in-NIFI-Final-processor/m-p/158833#M121224</link>
      <description>&lt;P&gt;I think you could might be able to use the new Wait and Notify processors that should be in the upcoming 1.2 release of Apache NiFi.&lt;/P&gt;&lt;P&gt;1st processor -&amp;gt; Notify -&amp;gt; Funnel&lt;/P&gt;&lt;P&gt;2nd processor -&amp;gt; Notify -&amp;gt; Funnel&lt;/P&gt;&lt;P&gt;Funnel -&amp;gt; Wait (Signal Count == 2)&lt;/P&gt;&lt;P&gt;Not sure if that is exactly what you described, but seems like it could work.&lt;/P&gt;&lt;P&gt;&lt;A href="https://ijokarumawak.github.io/nifi/2017/02/02/nifi-notify-batch/" target="_blank"&gt;https://ijokarumawak.github.io/nifi/2017/02/02/nifi-notify-batch/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 03:10:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-WAIT-on-two-processors-in-NIFI-Final-processor/m-p/158833#M121224</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2017-03-16T03:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I WAIT on two processors in NIFI? Final processor needs to check for both before continuing...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-WAIT-on-two-processors-in-NIFI-Final-processor/m-p/158834#M121225</link>
      <description>&lt;P&gt;Bump for any other possible solutions?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 00:08:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-WAIT-on-two-processors-in-NIFI-Final-processor/m-p/158834#M121225</guid>
      <dc:creator>jpetro416</dc:creator>
      <dc:date>2017-03-21T00:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I WAIT on two processors in NIFI? Final processor needs to check for both before continuing...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-WAIT-on-two-processors-in-NIFI-Final-processor/m-p/158835#M121226</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13322/jpetro416.html" nodeid="13322" target="_blank"&gt;@jpetro416&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Another possible solution until the Wait and Notify processors are available.&lt;/P&gt;&lt;P&gt;You can use MergeContent configured to only merge when it hits 2 files (which may work for you because you don't need the final flow files and you just want a trigger in this case):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13828-nifi-wait-trigger.png" style="width: 2418px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20810i914B81B5AE8E6746/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13828-nifi-wait-trigger.png" alt="13828-nifi-wait-trigger.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This first flow trigger will be held in queue before the MergeContent, and will only be merged once the second flow trigger has arrived. The merged flowfile that comes out of the MergeContent will be your final trigger.&lt;/P&gt;&lt;P&gt;Note, I used the following configurations to get this to work:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Back pressure on both 'success' flows going into MergeContent (set to only allow 1 file in queue at a time before the merge)&lt;/LI&gt;&lt;LI&gt;MergeContent configured with:
&lt;UL&gt;
&lt;LI&gt;Minimum Number of Entries = 2&lt;/LI&gt;&lt;LI&gt;Maximum Number of Entries = 2&lt;/LI&gt;&lt;LI&gt;Correlation Attribute Name = 'my-attribute' (I added this attribute to each UpdateAttribute processor - this would only be required if you wanted to have multiple triggers going into the MergeContent and you wanted to control the final trigger based on a correlation attribute)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I've attached the xml flow template for your reference.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/13842-mergecontent-trigger-wait.xml" target="_blank"&gt;mergecontent-trigger-wait.xml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:10:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-WAIT-on-two-processors-in-NIFI-Final-processor/m-p/158835#M121226</guid>
      <dc:creator>ldaluz</dc:creator>
      <dc:date>2019-08-18T12:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I WAIT on two processors in NIFI? Final processor needs to check for both before continuing...</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-WAIT-on-two-processors-in-NIFI-Final-processor/m-p/158836#M121227</link>
      <description>&lt;P&gt;Thank you, this is exactly the type of workaround I was looking for!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 03:20:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-WAIT-on-two-processors-in-NIFI-Final-processor/m-p/158836#M121227</guid>
      <dc:creator>jpetro416</dc:creator>
      <dc:date>2017-03-22T03:20:13Z</dc:date>
    </item>
  </channel>
</rss>

