Remis07
Remis07

Reputation: 377

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

i have this EvaluateJsonPath​ :

It generates something like this :

{"results":[{"term":"value1"},{"term":"value2"},{"term":"value3"}]}

This flowfile is then received by an ExecuteStreamCommand :

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

Thank you !

Upvotes: 2

Views: 302

Answers (1)

Mahendran V M
Mahendran V M

Reputation: 3496

Remis,

You can pass the entire flow file as arguments using "ExtractText" processor.

EvaluateJsonPath-->ExtractText-->ExecuteStreamCommand

In that extracttext,you have to add new property like below.

JsonContent:(.*)

In that JsonContent having entire flowfile in which from evaluateJsonPath processor.

After getting you can use that in ExecuteStreamCommand by ${JsonContent}

Upvotes: 2

Related Questions