<?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/285290#M211736</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;Writing to the content will overwrite all the other content which is not what I think you want to be doing.&amp;nbsp; Plus the updateAttribute processor can only manipulate FlowFile attributes via the NiFi Expression Language (EL).&lt;BR /&gt;&lt;BR /&gt;So you need to extract the json value to a FlowFile attribute in the EvaluateJsonPath processor.&amp;nbsp; Then manipulate that attributes value and then use UpdateRecord to update the actual content of your FlowFile using that FlowFile's attribute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Tue, 10 Dec 2019 19:21:15 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2019-12-10T19:21:15Z</dc:date>
  </channel>
</rss>

