Support Questions
Find answers, ask questions, and share your expertise

In NIFI how can we get the get the all dynamic properties

In NIFI how can we get the get the all dynamic properties

New Contributor

In NIFI I am trying to create a custom processor, SO I want to fetch all the properties entered by the user. So how can I create and fetch those properties in custom processor.

1 REPLY 1

Re: In NIFI how can we get the get the all dynamic properties

Super Guru

The user-defined properties are available in your ProcessContext like all properties are, but they have a flag for being dynamic. Here's a snippet for iterating over the user-defined properties:

context.getProperties().keySet().stream().filter(PropertyDescriptor::isDynamic).forEach()

Fill in the lambda in the forEach() with your logic for handling the properties. (This is taken from my SO answer for the same question)