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

Adding Scripted Record processors

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.15.0
    • Extensions
    • None

    Description

      The ScriptedTransformRecord was recently added which we can use as a starting point for a few additional scripted processors for common tasks. These might be:

      • ScriptedPartitionRecord. Given a Record, would return the name of a 'partition' to send to. Two Records from an incoming FlowFile will go to the same outbound FlowFile if they belong to the same Partition.
      • ScriptedValidateRecord. Given a record, return true or false to indicate whether it should go to 'valid' or 'invalid'. This is less powerful and can easily be encapsulated within the previous one. However, it might make sense to provide it anyway, just because if you want to validate a record, it's more obvious that this is the right processor.
      • ScriptedFilterRecord. Given a Record, returns true to keep the Record, false to drop the Record. Can already be done using the ScriptedTransformRecord by returning null. But it does make sense to offer this anyway from a user experience point of view

      All the above processors are very similar in functionalities and encapsulate each other. However the idea is to provide a set of processors that are obvious to use even if there is one that could answer all the needs by tweaking the configuration.

      Attachments

        Issue Links

          Activity

            People

              simonbence Simon Bence
              simonbence Simon Bence
              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 - 11h
                  11h