Support Questions
Find answers, ask questions, and share your expertise

How to read the attrbibute's value by an ExecuteStreamCommand arguments

Hello,

i have this EvaluateJsonPath :

15673-pp1.png

It generates something like this : {"results":[{"term":"value1"},{"term":"value2"},{"term":"value3"}]}

This flowfile is then received by an ExecuteStreamCommand :

15681-p3.png

I want to pass this flowfile as an arguments in my process, i've already tried {$terms} as showed above, but it doesn't work..

15674-p2.png

Thank you !

3 REPLIES 3

Contributor

Hi @brian adi

I believe the correct syntax for accessing an attribute (terms in your case) would be ${terms}

Please see the expression language guide for more information.

THanks @brosander, but it didn't work, i had to add an extractText processor.

@brian adi

I did a little test and it worked just fine. If you list the queue of the flow files coming out of the EvaluateJsonPath processor, what do you see?