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

Add to ReplaceText the possibility to specify the search and replacement values with an attribute or parameter

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.19.1
    • None
    • Extensions

    Description

      Actually the ReplaceText processor can be programmed with a replacement strategy of kind : Regex Replace. This means that the properties Replacement value and replace value can host some EL attribute or parameters. The regex itself will not be in the attribute, but it is intended that the user wants to use the attribute as some part of it. 

      eg ov value supported value: (.{${mynumber}})(.*)

      but if i prepare the regex search and replacement value in a dedicated attribute of the flowfile then it is not possible to set the property to the attribute content  (see attached image)

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            amoltheni Andrea Molteni

            Dates

              Created:
              Updated:

              Slack

                Issue deployment