identifying which flow your requesting in javascript

Not applicable

How to identify for which flow we are requesting in javascript..

i have 2 flows a and b.

i need to find in javascript whethere request is from flow a or b.

i have tried reqest.url.includes("a")..

and reqest.url.includes("b")

am not getting a exact answer any one suggest

0 1 70
1 REPLY 1

You can refer current.flow.name variable to get flow name

JS sample

var test=context.getVariable("current.flow.name");

print("which flow" + test);

Snapshots trace

6286-conditionalflow-trace.png

Thanks,