<?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: NiFi: Is it possible to access Processor Group variables within ExectueScript? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Is-it-possible-to-access-Processor-Group-variables/m-p/204286#M166275</link>
    <description>&lt;P&gt;Is there a way (without using execute script) to modify the processor_group variable in processor?&lt;/P&gt;</description>
    <pubDate>Thu, 06 Dec 2018 23:01:04 GMT</pubDate>
    <dc:creator>mallikarjun_r_t</dc:creator>
    <dc:date>2018-12-06T23:01:04Z</dc:date>
    <item>
      <title>NiFi: Is it possible to access Processor Group variables within ExectueScript?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Is-it-possible-to-access-Processor-Group-variables/m-p/204283#M166272</link>
      <description>&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;Is it possible to access the Processor Group variables within the ExecuteScript Processor? I would specifically be interested in the syntax for doing that with Ruby.&lt;/P&gt;&lt;P&gt;Any guidance would be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 00:55:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Is-it-possible-to-access-Processor-Group-variables/m-p/204283#M166272</guid>
      <dc:creator>sonnychee</dc:creator>
      <dc:date>2018-05-28T00:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: Is it possible to access Processor Group variables within ExectueScript?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Is-it-possible-to-access-Processor-Group-variables/m-p/204284#M166273</link>
      <description>&lt;P&gt;The variables are in a ComponentVariableRegistry which is pretty well-hidden under the NiFi API. Usually you get at variables by evaluating Expression Language in the context of a processor property. In this case I set a Process Group variable called "myAttr" to "myValue", then I configured ExecuteScript like so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="77400-useprocessgroupvariable.png" style="width: 997px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17224iC1E22B4229D73C70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="77400-useprocessgroupvariable.png" alt="77400-useprocessgroupvariable.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note that I created a user-defined property "myProp" whose value is an expression language construct containing the PG variable name. When you call evaluateAttributeExpressions() on that property (see the script) it will resolve the value of "myAttr" and return that, you can verify that an outgoing flow file would now have "myFlowFileAttr" set to "myValue".&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 05:05:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Is-it-possible-to-access-Processor-Group-variables/m-p/204284#M166273</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2019-08-18T05:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: Is it possible to access Processor Group variables within ExectueScript?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Is-it-possible-to-access-Processor-Group-variables/m-p/204285#M166274</link>
      <description>&lt;P&gt;Thanks Matt, that did the trick!&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 05:48:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Is-it-possible-to-access-Processor-Group-variables/m-p/204285#M166274</guid>
      <dc:creator>sonnychee</dc:creator>
      <dc:date>2018-05-28T05:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: Is it possible to access Processor Group variables within ExectueScript?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Is-it-possible-to-access-Processor-Group-variables/m-p/204286#M166275</link>
      <description>&lt;P&gt;Is there a way (without using execute script) to modify the processor_group variable in processor?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 23:01:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Is-it-possible-to-access-Processor-Group-variables/m-p/204286#M166275</guid>
      <dc:creator>mallikarjun_r_t</dc:creator>
      <dc:date>2018-12-06T23:01:04Z</dc:date>
    </item>
  </channel>
</rss>

