Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

Highlighted

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

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)