Reputation: 37
i have used invoked http processor for get the alarm from web app. then i have to used split processor to spilt one alarm in one flow file. and the i have used evaluatejsonpath processor of extract data into attribute after that i want to used extract value in next http invoked processor for further used
problem is i didn't get the attribute form evaluatejsonpath processor if i select flowfile-content then i will get the id value and if i select flowfile-attribute i will not getting any attribute and value ...
Upvotes: 0
Views: 1395
Reputation: 1659
@AnnapurnaGautam You need to set EvaluateJson to flowfile-attribute. Then you can use attribute ${id} in InvokeHTTP Remote Url. You only use flowfile-content when you need the values in the body (flow file) for invokeHttp.
Please see my response in Cloudera Community with a template and the syntax for evaluateJsonPath to get ${id}.
$.history[0].id
Upvotes: 2