<?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: Using Apache Nifi How can you perform a mathematical operation on json attribute in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Using-Apache-Nifi-How-can-you-perform-a-mathematical/m-p/285370#M211777</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/45715"&gt;@fowler7878&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No problem.&amp;nbsp; At this point you have extracted the the count successfully and used updateAttribute processor to subtract 31 from it.&amp;nbsp; You do not need to write it back to the content to use it in putEmail processor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The majority of the putEmail processor configuration properties support NiFi Expression Language also.&lt;BR /&gt;You can retrieve the value of your FlowFiiles attribute with this simple NiFi EL statement:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;${COUNTFILES}&lt;/LI-CODE&gt;&lt;P&gt;So you can use above anywhere in the string you configure in the the "Subject" and/or "Message" configuration properties.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;BR /&gt;&lt;BR /&gt;If you found my answer help you to a solution, please don't forget to mark it as the accepted solution.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2019 19:06:30 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2019-12-11T19:06:30Z</dc:date>
  </channel>
</rss>

