How to get the flow name ?

I am working on logging the API details. How to get the flow name using javascript ? I have tried context.getVariable("current.flow.name") Is there any other way ?

Solved Solved
1 2 1,597
1 ACCEPTED SOLUTION

Not applicable

Hi surekapoppy@gmail.com

I tried to get the flowname, it works for me.

Please find the attached screenshots.

You could see the flowName is captured.

my flow is

<Flow name="status">
            <Description/>
            <Request>
                <Step>
                    <Name>SetVariable</Name>
                </Step>
                <Step>
                    <Name>Service-Callout-1</Name>
                </Step>
            </Request>
            <Response/>
            <Condition>(proxy.pathsuffix MatchesPath "/status/{code}") and (request.verb = "GET")</Condition>
        </Flow>

4396-screen-shot-2017-02-28-at-114014-pm.png

4397-screen-shot-2017-02-28-at-114043-pm.png

View solution in original post

2 REPLIES 2

Is that way not working? What problem are you having?

Not applicable

Hi surekapoppy@gmail.com

I tried to get the flowname, it works for me.

Please find the attached screenshots.

You could see the flowName is captured.

my flow is

<Flow name="status">
            <Description/>
            <Request>
                <Step>
                    <Name>SetVariable</Name>
                </Step>
                <Step>
                    <Name>Service-Callout-1</Name>
                </Step>
            </Request>
            <Response/>
            <Condition>(proxy.pathsuffix MatchesPath "/status/{code}") and (request.verb = "GET")</Condition>
        </Flow>

4396-screen-shot-2017-02-28-at-114014-pm.png

4397-screen-shot-2017-02-28-at-114043-pm.png