Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Response for a HTTPRequest Processor

Highlighted

Response for a HTTPRequest Processor

New Contributor

Hi Experts,

I have a scenario where I need to return a response for my nifi process on completion or on failure.

HandleHttpRequest --> [Some Processors ] --> ExecuteSQL -->[Some Processors ] -->
-->UpdateAttribute--> PutFile -->ExecuteScript(Converts JSON File to CSV via Python Script) ---> ???

HttpRequest body contains multiple parameters and PutFile saves multiple files.

Input :

[{
"PARAM" : "VALUE1"
},
{
"PARAM" : "VALUE2"
}
....
{
"PARAM" : "VALUEN"
}
]

Expected Response :

[{
"PARAM" : "VALUE1",
"STATUS : "OK"
},
{
"PARAM" : "VALUE2",
"STATUS : "NOT OK"
}
....
{
"PARAM" : "VALUEN",
"STATUS : "OK"
}
]


What is the correct way to return the response from this scenario?

Thanks.

1 REPLY 1

Re: Response for a HTTPRequest Processor

Where in your flow do you have the information to populate the STATUS field?