post flow logging following a conditional flow

Not applicable

I am using multiple conditional flows and using a "message logging policy" in response of post flow. I am expecting message should be logged in loggly . I don't see post flow getting invoked in trace, which might be by design but not sure ? The Same Message logging policy works fine in a simple API proxy without any conditional flows.

Am I missing something here ?

0 6 423
6 REPLIES 6

Are the conditional flows being executed? Trace will show you little T/F bubbles for the conditions.

Yes one of the conditional flow is executing which is by our design but the following post flow containing Message logging policy doesn't seem to execute.

@ansmayank , Most probably it's your proxy logic. Double check all the flow conditions & policy conditions.

I verified flow and config looks good.The only thing, I notice might cause this is, I have an error condition in my conditional flow and a fault rule containing assign message policy to generate custom error message . May be message logging policy in Post flow is not getting executed as preceding conditional flow has error condition. Please see attachment. I am expecting to see message logging policy before "AX" step.

capture.png

Well the whole purpose of using logging in post client flow is to capture various variables, http/service callout status code specially for error scenario.

Yes, so when I attach the logging policy to fault rule, it works fine. This is weird, shouldn't we be able to log successful as well as error responses in one place say "Post Flow" ? now it seems for error scenario logging policy should be in fault rule and for success scenario either in conditional response flow or post client flow.