Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-3006

Allow dynamic PropertyDescriptors to auto-populate name/displayName



    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.0.0
    • None
    • Core Framework


      As discussed during a review of PR 1045, it would be useful to allow dynamic PropertyDescriptor s to automatically populate either the .name or .displayName field from the user-provided value. This would likely involve writing utility methods for either humanize() and/or symbolize().

      From the PR comment:

      Obviously the name is provided by the user at runtime, but should we still try to define a displayName for the PropertyDescriptor? I could see three possibilities:

      • name and displayName are identical – not much value
      • name is as provided, displayName is the parameter passed through a humanize()-type method (see below)
      • displayName is as provided, name is the parameter passed through a symbolize()-type method (see below)

      The transform methods humanize()/symbolize() could be as simple as title-casing and adding/removing spaces at word boundary guesses.

      I'm not sure how much energy this is worth investing, as these property names are not constants which will be retained across instances of the processor, but I think they still would lose the state persisted in the flow.xml.gz if it was somehow modified.




            Unassigned Unassigned
            alopresto Andy LoPresto
            0 Vote for this issue
            1 Start watching this issue