I have a soap request coming into Nifi. This xml needs to be send to two API endpoints via Invokehttp processor. Only if both response from both InvokeHttp processors is 200 then I need to send "SUCCESS" to sender otherwise "FAILURE". My question here is how can I wait for InvokeHTTP processor to send response from another INVOKEHTTP processor. I am on Nifi-1.1.1. I checked with mergecontent, it is not working properly.
Can you chain together two InvokeHttp processors?
The first InvokeHttp makes a request, if the response is 200 then route it to a second InvokeHttp, if the response of that is 200 then do whatever you want to do.
Alternatively you could probably do something with the Wait/Notify processors where you send the original flow file to a Wait processor waiting for 2 signals, then send the flow to two InvokeHttp processors, each followed by a Notify, if they both Notify successfully then the wait will be released.