<?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: RouteOnAttribute - How to capture property in condition in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/RouteOnAttribute-How-to-capture-property-in-condition/m-p/316841#M226918</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/88347"&gt;@leandrolinof&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NiFi Expression Language (NEL) [1] does not read content of the FlowFile.&amp;nbsp; The RouteOnAttribute processor never looks at the content of a FlowFile. So verify your source FlowFile has attributes set with valid numeric only values.&lt;BR /&gt;&lt;BR /&gt;So your inbound FlowFile would need to have two attributes on it already:&lt;BR /&gt;1. &lt;STRONG&gt;cont&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2. &lt;STRONG&gt;CONTADOR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; &lt;EM&gt;NiFi is case sensitive as well.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;And both these attributes need to have assigned values to them.&lt;BR /&gt;The NEL statement you have will return the value assigned to the FlowFile attribute "&lt;STRONG&gt;cont&lt;/STRONG&gt;" and check to see if it is less than the value assigned to the FlowFile attribute "&lt;STRONG&gt;CONTADOR&lt;/STRONG&gt;".&amp;nbsp; &amp;nbsp; If that resolves to "True", the FlowFile will be routed to the connection containing the new dynamically created "&lt;STRONG&gt;CONTINUE&lt;/STRONG&gt;" relationship. Otherwise, it will route to the "&lt;STRONG&gt;unmatched&lt;/STRONG&gt;" relationship which you appear to have auto-terminated.&lt;BR /&gt;&lt;BR /&gt;[1]&amp;nbsp;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you found this addressed your query, please take a moment to login and click accept on this solution.&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 21:48:17 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2021-05-20T21:48:17Z</dc:date>
    <item>
      <title>RouteOnAttribute - How to capture property in condition</title>
      <link>https://community.cloudera.com/t5/Support-Questions/RouteOnAttribute-How-to-capture-property-in-condition/m-p/316641#M226863</link>
      <description>&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the "RouteOnAttribute" processor to do a loop validating a condition that is as follows = ${cont:lt(${CONTADOR})}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am not able to make the processor understand the property "CONTADOR"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leandrolinof_0-1621364126806.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31219i61FC10533F380A83/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leandrolinof_0-1621364126806.png" alt="leandrolinof_0-1621364126806.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leandrolinof_1-1621364403404.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31220i551BB67594663446/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leandrolinof_1-1621364403404.png" alt="leandrolinof_1-1621364403404.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leandrolinof_2-1621364435035.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31221i50DAEBB2E1F79FEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leandrolinof_2-1621364435035.png" alt="leandrolinof_2-1621364435035.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 May 2021 19:04:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/RouteOnAttribute-How-to-capture-property-in-condition/m-p/316641#M226863</guid>
      <dc:creator>leandrolinof</dc:creator>
      <dc:date>2021-05-18T19:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: RouteOnAttribute - How to capture property in condition</title>
      <link>https://community.cloudera.com/t5/Support-Questions/RouteOnAttribute-How-to-capture-property-in-condition/m-p/316841#M226918</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/88347"&gt;@leandrolinof&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NiFi Expression Language (NEL) [1] does not read content of the FlowFile.&amp;nbsp; The RouteOnAttribute processor never looks at the content of a FlowFile. So verify your source FlowFile has attributes set with valid numeric only values.&lt;BR /&gt;&lt;BR /&gt;So your inbound FlowFile would need to have two attributes on it already:&lt;BR /&gt;1. &lt;STRONG&gt;cont&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2. &lt;STRONG&gt;CONTADOR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; &lt;EM&gt;NiFi is case sensitive as well.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;And both these attributes need to have assigned values to them.&lt;BR /&gt;The NEL statement you have will return the value assigned to the FlowFile attribute "&lt;STRONG&gt;cont&lt;/STRONG&gt;" and check to see if it is less than the value assigned to the FlowFile attribute "&lt;STRONG&gt;CONTADOR&lt;/STRONG&gt;".&amp;nbsp; &amp;nbsp; If that resolves to "True", the FlowFile will be routed to the connection containing the new dynamically created "&lt;STRONG&gt;CONTINUE&lt;/STRONG&gt;" relationship. Otherwise, it will route to the "&lt;STRONG&gt;unmatched&lt;/STRONG&gt;" relationship which you appear to have auto-terminated.&lt;BR /&gt;&lt;BR /&gt;[1]&amp;nbsp;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you found this addressed your query, please take a moment to login and click accept on this solution.&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 21:48:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/RouteOnAttribute-How-to-capture-property-in-condition/m-p/316841#M226918</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-05-20T21:48:17Z</dc:date>
    </item>
  </channel>
</rss>

