Support Questions
Find answers, ask questions, and share your expertise

Response from two InvokeHTTP processors (Nifi 1.1.1)

Response from two InvokeHTTP processors (Nifi 1.1.1)

Explorer

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.

2 REPLIES 2
Highlighted

Re: Response from two InvokeHTTP processors (Nifi 1.1.1)

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.

Highlighted

Re: Response from two InvokeHTTP processors (Nifi 1.1.1)

Explorer

Thanks Bryan for answering..implementing the same approach..let me come back to you if I face any issues.