<?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/285166#M211643</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;my initial thought here for you would be to chain the following three NiFi processor components together:&lt;BR /&gt;--&amp;gt; EvaluateJsonPath ---&amp;gt; UpdateAttribute ---&amp;gt; UpdateRecord --&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;1. The EvaluateJsonPath processor should be configured to write the desired Json field value out to a NiFi FlowFileAttribute.&lt;BR /&gt;2. The UpdateAttribute processor would be used to manipulate that extracted value by subtracting 30 from it using the NiFi Expression Language (EL)&lt;BR /&gt;3. The UpdateRecord processor would be used to update your original FlowFile JSON content with the new Json field value.&lt;BR /&gt;&lt;BR /&gt;Hope this helps you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2019 20:42:26 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2019-12-09T20:42:26Z</dc:date>
  </channel>
</rss>

