Using custom variables in flow conditions

Hello All,

Wondering if we could use custom variables as part of the flow conditions.

As an example, I set the value of the variable proxy_op_name depending on certain login in my proxy endpoints and want to have a particular target flow execute based on the value of this variable. However, the behavior I'm seeing is that the target flow on the top always gets selected for execution irrespective or the variable value.

Here is the snippet for my target flow:

<TargetEndpoint name="default">
    <Description/>
    <FaultRules/>
    <Flows>
        <Flow name="flow1">...             
<Condition>{proxy_op_name} equals "lookup"</Condition>
        </Flow>
        <Flow name="flow2">...             
<Condition>{proxy_op_name} equals "get_doc"</Condition>
        </Flow>
    </Flows>
    <PostFlow name="PostFlow">
        <Request/>
        <Response/>
    </PostFlow>
</TargetEndpoint>

in my situation, flow1 always gets selected for execution.

Solved Solved
0 1 638
1 ACCEPTED SOLUTION

Don't use curly brackets ({}) to enclose your custom variable. The condition should be something like:

<Condition>proxy_op_name equals "lookup"</Condition>

View solution in original post

1 REPLY 1

Don't use curly brackets ({}) to enclose your custom variable. The condition should be something like:

<Condition>proxy_op_name equals "lookup"</Condition>