Condition not working in flow

Not applicable

Hi,

I have a conditional flow defined with a few conditional steps. While the condition is being checked when starting the conditional flow, the conditions are not checked at the individual step level.

Not sure what I have missed.

Here is my flow. Even though Policy_2 and Policy_3 should have run based on the condition, it is actually running in all cases. The trace does not show a check happening.

Please help.

<Flows>
    <Flow name="post /users">
        <Description>Create a user</Description>
        <Request>
            <Step>
                <Name>Policy_1</Name>
            </Step>
            <Step>
                <Name>Policy_2</Name>
                <condition>{request.queryparam.param1 = "register"}</condition>
            </Step>
            <Step>
                <Name>Policy_3</Name>
                <condition>{request.queryparam.param1 = "register"}</condition>
            </Step>
        </Request>
        <Response>
        </Response>
        <Condition>(proxy.pathsuffix MatchesPath "/users") and (request.verb = "POST")</Condition>
    </Flow>
</Flows>
Solved Solved
0 2 750
1 ACCEPTED SOLUTION

Can you try <Condition> instead of <condition>. Notice capital “C”

Thanks

View solution in original post

2 REPLIES 2

Can you try <Condition> instead of <condition>. Notice capital “C”

Thanks

It is elementary, my dear Watson! Thanks @isaias.arellano.delgado