How to get conditional flow name

In target endpoints postflow I want to retrieve conditional flow name that got executed before coming to target endpoints. What is the Apigee variable which populates with conditional flow name?

Thanks,

Krish

3 6 723
6 REPLIES 6

sidd-harth
Participant V

Hi @Krish current.flow.name is the Variable you need to use.

In Trace, click on Show All Flow Info option...

4419-apigee.png

That allows us to get the name of the flow while it executes, but not after. Is there a way to get the conditional flow name after is has executed? Either by getting all executed flows or just getting the last executed flow?

One way to get the name of the conditional flow that has already executed... is for a policy in the conditional flow to set a "well-known variable" to contain the name of the conditional flow.

Thank You Mr. Dino,

Is there a simple way to capture the flow name in a single step without need to insert this policy in each flow ?

in other words is there a way to configure and apply a certain policy automatically in each conditional flow ? like the flow hook but for conditional flows ( Conditional flow hook )

Nothing as such like flowhooks. You need to use a policy to record the flow.

Not applicable

you can use flow.name during the flow execution and that gives current flow name.