Is it possible for fail a BOD so it will generate Error BOD?
Hi everyone,
I have a data flow in ION, it makes an API call.
Is it possible to force data flow to fail if I receive specific response from API?
I need to force ION to generate error BOD.
Thanks,
KK
Answers
-
Based on the status code you can generate error bod.
or else based on the response, generate a custom notification.
or try a custom policy.
0 -
Hi Prabodha,
Thank you for your response.
Unfortunately that API does not return status code.
If I get response below, it means other application is online and I continue my data flow.
If API call returns anything else, I need to error out the BOD.
Regards
KK
0 -
when the API returns 200 and the payload is empty, based on the payload you can generate a notification. If you are calling this inside workflow just get the value of "application" and generate the response.
if API does not return status code 200, based on the status code generate a custom notification or update Confirm BOD status codes(this will generate Confirm BOD).
0 -
But I don't want Confirm BOD, I need Error BOD.
0 -
Hi Kirill,
Confirm BOD is an internal ION BOD, you cannot find it in a Data Catalog. But, in the case of an error, the Confirm BOD generates an Error BOD, that can be tracked by a Monitor for example.
So in the solution proposed by Prabodha, when we define a specific API status code to create a Confirm BOD, eventually will be generated an Error BOD, that can be "captured" by a Monitor.
Here are some details:But, as I understood your API does not return a "wrong" code.
Maybe in your case, you can use the "Output Header" mapping. The idea is that you can map a response from the API call to the ION message header and then you can use this header for filtering, routing, etc. in a Data Flow.
More details are here:Kind regards,
Danil.0