Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

[Nifi] Capture Process Group Name Within Running Process Group

avatar

Is there a way to get access to the Process Group Name (and details) within a running Process Group? I don't see a specific value in the expression language or any other mention of it within properties documentation. I am looking to use the name of the Process Group to drive property naming, notifications, etc.

Simple Example:

Process Group Name: financeSalesDataLoad

Notification Message: Nifi ${process.group.name} Failed (or Succeded)

1 ACCEPTED SOLUTION

avatar
Master Guru

There currently isn't a way to do this. With expression language you are either referencing a function (listed here https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html) or variable. The variables could be flow file attributes, system properties passed through bootstrap.conf, or variables from the variable registry (https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#custom_properties).

I don't know of a reason why there couldn't be an EL function like ${processGroupName()} which returned the name of the enclosing process group. It just hasn't come up before.

View solution in original post

1 REPLY 1

avatar
Master Guru

There currently isn't a way to do this. With expression language you are either referencing a function (listed here https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html) or variable. The variables could be flow file attributes, system properties passed through bootstrap.conf, or variables from the variable registry (https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#custom_properties).

I don't know of a reason why there couldn't be an EL function like ${processGroupName()} which returned the name of the enclosing process group. It just hasn't come up before.