2
votes

New to NiFi!

I've split a flowfile into a single line of text using splitJSON processor.

The NiFi flowfile contents are as follows:

abcdefg

I'd like to be able to take the text in the flowfile and either add it to a url to make a subsequent call using InvokeHTTP or add the contents of the flowfile as an attribute so I can make the subsequent call using InvokeHTTP like so

http://localhost/${my.newly.added.attribute}

How do i do this?

Any help would be appreciated! Thanks in advance!

1

1 Answers

5
votes

ExtractText will allow you to find sections of content and place in an attribute on the FlowFile. For your example, you could capture the entirety of the content and assign to an attribute my.newly.added.attribute. InvokeHTTP would then access it using Expression Language 2 as in your example.