<?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: Get the processor-group name in NIFI flow in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/213665#M74501</link>
    <description>&lt;P&gt;It comes from knowing that the ProcessContext passed into the script is actually a &lt;A href="https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/processor/StandardProcessContext.java" target="_blank"&gt;StandardProcessContext&lt;/A&gt; which has some variables you can get at with Groovy (provided there is no SecurityManager as mentioned).&lt;/P&gt;</description>
    <pubDate>Tue, 15 May 2018 21:22:43 GMT</pubDate>
    <dc:creator>mburgess</dc:creator>
    <dc:date>2018-05-15T21:22:43Z</dc:date>
    <item>
      <title>Get the processor-group name in NIFI flow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/213662#M74498</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I need to get the processor-group name in my NIFI flow. &lt;/P&gt;&lt;P&gt;I could hardcode it in updateAttribute, but would prefere to get it dynamilly &lt;/P&gt;&lt;P&gt;Is that possible using expression langugage or executescript&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 22:26:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/213662#M74498</guid>
      <dc:creator>simon_jespersen</dc:creator>
      <dc:date>2018-02-12T22:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get the processor-group name in NIFI flow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/213663#M74499</link>
      <description>&lt;P&gt;It is possible with ExecuteScript and Groovy if you don't have a SecurityManager set on the JVM that would prevent Groovy from getting at the ProcessorNode which is a private member variable of the StandardProcessContext.  The following script can be used in ExecuteScript to add the parent process group ID as an attribute to an incoming flow file:&lt;/P&gt;&lt;PRE&gt;def flowFile = session.get()
if(!flowFile) return
processGroupId = context.procNode?.processGroupIdentifier ?: 'unknown'
flowFile = session.putAttribute(flowFile, 'processGroupId', processGroupId)
session.transfer(flowFile, REL_SUCCESS)&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Feb 2018 00:14:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/213663#M74499</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2018-02-13T00:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get the processor-group name in NIFI flow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/213664#M74500</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/641/mburgess.html" nodeid="641"&gt;@Matt Burgess&lt;/A&gt;, your solution works really fine, thanks.&lt;/P&gt;&lt;P&gt;I was trying to see where procNode property was defined to see what else can be get from there but I am unable to find it.&lt;/P&gt;&lt;P&gt;Do you know where is this information?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 17:41:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/213664#M74500</guid>
      <dc:creator>oscarandreu</dc:creator>
      <dc:date>2018-05-15T17:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get the processor-group name in NIFI flow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/213665#M74501</link>
      <description>&lt;P&gt;It comes from knowing that the ProcessContext passed into the script is actually a &lt;A href="https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/processor/StandardProcessContext.java" target="_blank"&gt;StandardProcessContext&lt;/A&gt; which has some variables you can get at with Groovy (provided there is no SecurityManager as mentioned).&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 21:22:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/213665#M74501</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2018-05-15T21:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get the processor-group name in NIFI flow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/213666#M74502</link>
      <description>&lt;P&gt;The process group name can actually be found with the attached groovy code:&lt;/P&gt;&lt;PRE&gt;def flowFile = session.get()
if(!flowFile) return
processGroupName = context.procNode?.getProcessGroup().getName()
flowFile = session.putAttribute(flowFile, 'processGroupName', processGroupName)
session.transfer(flowFile, REL_SUCCESS)
&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Jun 2018 21:16:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/213666#M74502</guid>
      <dc:creator>juliangimbel</dc:creator>
      <dc:date>2018-06-22T21:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get the processor-group name in NIFI flow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/412492#M74503</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;I'm newbe in NiFi and Groovy. I hope you can help me.&lt;BR /&gt;&lt;BR /&gt;Related Topic: I found here –&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/213666" target="_self"&gt;"Solved: Re: Get the processor-group name in NIFI flow - Cloudera Community - 213662"&lt;/A&gt;&amp;nbsp;(2018)&amp;nbsp;– very&amp;nbsp;interestion solution! Thank to&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/38301" target="_blank"&gt;@mburges&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have related question:&amp;nbsp;&lt;STRONG&gt;I want to build with Groovy dictionary/cache for every proceccor where key = Proccesor ID, value = "&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;bread crumbs"&lt;/STRONG&gt; (full path to processor from root canvas – the string like this: "PG1_Name" / "PG2_(Child_of_PG1)_Name"&amp;nbsp;/ "PG3_(Child_of_PG2)_Name" .&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The quesions are:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;How to get list of Process Groups in the root and in Each PG?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;How to get list of Processors in Each PG?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;How to organize in Groovy cycles for scan PGs?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;How to save / read data in/from Groovy dictionary /&amp;nbsp; NiFi cache?&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance for any help!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 12:20:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/412492#M74503</guid>
      <dc:creator>IgorSpryzhkov</dc:creator>
      <dc:date>2025-09-25T12:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get the processor-group name in NIFI flow</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/412514#M74504</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/132768"&gt;@IgorSpryzhkov&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You have asked a new unrelated question in an older post which already has an accepted answer.&amp;nbsp; &amp;nbsp;You would get better traction/visibility in the community of you were to start a new community question instead.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2025 13:14:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/412514#M74504</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-09-26T13:14:00Z</dc:date>
    </item>
  </channel>
</rss>

