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.