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

Add RecordReader/Writer access in ExecuteGroovyScript

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.11.0
    • Extensions
    • 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

              mattyb149 Matt Burgess
              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