使用流文件内容

Using flowfile content

NiFi 新手!

我使用 splitJSON 处理器将流文件拆分为一行文本。

NiFi流文件内容如下:

abcdefg

我希望能够获取流文件中的文本并将其添加到 url 以使用 InvokeHTTP 进行后续调用,或者将流文件的内容添加为属性以便我可以像这样使用 InvokeHTTP 进行后续调用

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

我该怎么做?

如有任何帮助,我们将不胜感激! 提前致谢!

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 如您的示例所示。