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

Add RecordReader/Writer access in ExecuteGroovyScript

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.11.0
    • Component/s: Extensions
    • Labels:
      None

      Description

      ExecuteGroovyScript has a couple of built-in conventions/bindings to make working with controller services easier. One is `SQL.` which lets you add dynamic properties that are DBCPService implementations. The other is `CTL.` which lets you add arbitrary controller services as dynamic properties for use in your script(s).

      CTL is very generic and in fact led to an issue (NIFI-6852) which is fixed in NiFi 1.11.0. Even so, this Jira proposes to add `RecordReader.` and `RecordWriter.` conventions to ExecuteGroovyScript, offering dynamic property access to RecordReaderFactory and RecordSetWriterFactory services, respectively. For readers/writers, this alleviates the need to choose from a list of all controller services in the dynamic property, as well as to remove the need to use the ControllerServiceLookup to find the desired CS and then cast it to the desired controller service interface. Basically the RecordReader/Writer version of the current `SQL.` capability.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mattyb149 Matt Burgess
                Reporter:
                mattyb149 Matt Burgess
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m