Support Questions

Find answers, ask questions, and share your expertise

[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.