SharedFlow not Executing Policy in order

Hi All,

I have a use case where I need to execute <FaultRule> in the case of a Downstream API is down, so that I can return a more generic error message, rather than HTTP 503, for example. and I have created a Shared Flow, which has around 6 policies, JS KVM ... that executes if there is a fault.

And when I test that the back-end is down the Policy in the SharedFlow do not execute in the order that I want them to, e.g. JS is executed last, which contains some logic. I am running OPDK,

Has anyone this behavior before, if so what can I do to remedy the issue.

Thanks

0 2 165
2 REPLIES 2

I understand what you're saying, but can you provide more details as to the number and order of policies in the sharedflow ?

And also show exactly how your FaultRule is configured. I guess there might be a FlowCallout but I'm not sure.

Not applicable

I didn't see this ever. It works in the way I have configured.