Citrix ADC evaluates policies bound to a vServer by numeric priority, from the smallest value to the largest. That order sets which rules run first, while each policy’s action can stop or continue evaluation. Learn how priority differs from gotoPriorityExpression and why the distinction matters.

Multiple Choice

Which parameter controls the order of policy evaluation on a vServer?

Policies bound to a vServer are ordered by a numeric priority value. Citrix ADC evaluates them from the smallest priority number to the largest, so a policy with a lower value runs before one with a higher value. This ordering lets you set which rules take precedence. When a policy matches, its action determines whether evaluation stops or continues to the next policy. There is also a gotoPriorityExpression you can use to jump to a specific priority, which can alter the flow, but the default sequence is still defined by the priority values. The other options simply identify the policy or its type and do not control the evaluation order.

How Citrix ADC Policy Priority Shapes vServer Traffic

A Citrix ADC vServer can apply several policies to the traffic it handles. Those policies may check who is connecting, what resource they’re requesting, or how a request should be managed. But when more than one policy is bound to the same vServer, the order matters. A rule that runs first can shape what happens next.

The main control for that order is priority. Citrix ADC evaluates policies by their numeric priority, starting with the smallest number and moving toward larger numbers. That simple rule has a big effect: it determines which conditions get a chance to act first, and whether later policies are evaluated at all.

Priority is the running order

Think of a vServer’s policies as a set of instructions arranged in a queue. A policy with priority 10 is evaluated before one with priority 20. A policy with priority 100 comes later still. The numbers don’t describe how important a policy is in general; they establish its place in the evaluation sequence.

That distinction is useful when you’re reviewing an ADC configuration. A policy with a small priority number isn’t automatically a “stronger” policy. It simply gets evaluated earlier. Its effect depends on its expression, its configured action, and the way the rest of the policy flow is set up.

For example, imagine a Gateway vServer with one policy that checks for a particular group of users and another that handles all other users. The more specific rule should usually be evaluated before the broad catch-all rule. If the broad rule runs first and its action ends evaluation, the specific rule may never get a chance to run.

This is a common source of confusion: the expression can be perfectly valid, yet the behavior still seems wrong because the policy order or flow doesn’t match the intended design.

Priority sets the sequence, not the outcome

Priority controls which policy ADC considers first, but it doesn’t by itself decide what happens after a match. The policy’s action matters too.

Depending on the policy type and configuration, a matching policy can end evaluation, continue to the next policy, or direct evaluation elsewhere. So it helps to think of policy processing as two related questions:

  1. Which policy runs first? Priority sets the default sequence.

  2. What happens after a policy is evaluated? Its action and flow settings determine whether processing stops or continues.

That second part explains why two configurations with the same priority values can behave differently. In one setup, a match may end the chain. In another, evaluation may continue, allowing additional policies to run. Priority is the order of the queue; the action controls how the queue is handled.

Where gotoPriorityExpression fits

Citrix ADC also has a setting called gotoPriorityExpression. It can change the flow after policy evaluation by directing processing to a specified priority or by using an expression to determine the next step. This can be useful when a policy needs to route evaluation through a particular path.

But it’s important not to confuse this setting with the priority value itself. Priority establishes the normal evaluation order. gotoPriorityExpression can alter what happens next in that flow. If a policy jumps ahead, ADC may not simply continue to the policy with the next numeric priority.

That distinction matters during troubleshooting. If a policy with priority 10 appears to be followed by one at priority 30 rather than priority 20, check whether the earlier policy’s action or goto setting is changing the path. The list of priority values tells you the default sequence, but not necessarily every turn the evaluation flow will take.

Why policy order matters on Citrix Gateway

Citrix Gateway configurations often combine several kinds of logic. A vServer may use policies to handle authentication, session settings, access control, or other connection behavior. Some rules apply to a narrow group or a particular condition; others are broad and may cover most traffic.

When specific and general rules are mixed, the sequence deserves attention. A narrow rule placed after a broad rule may be unreachable if the broad rule ends evaluation. On the other hand, if evaluation continues, later policies may still affect the session. The right arrangement depends on the intended behavior, not on a universal formula.

A useful way to reason about the configuration is to read it from top to bottom:

  • What does the first policy match?

  • Does its action stop or continue evaluation?

  • If it continues, which policy is next by priority?

  • Does any goto setting change that route?

  • Could a general rule catch traffic before a more specific rule?

This kind of plain-language walkthrough often reveals problems faster than staring at a long list of policy names.

Names and types describe policies; they don’t rank them

A policy name helps administrators identify its purpose. A type indicates what kind of policy it is and, in some contexts, where or how it can be used. Neither one sets the evaluation order on a vServer.

That may sound obvious, but names such as “HighPriorityAccess” can be misleading if the numeric priority says otherwise. ADC follows the configured priority value, not the wording in the policy name. Clear names are still valuable, though. A name like Gateway_AdminGroup_Access tells a future administrator more than Policy_17, especially when several policies are involved.

A little naming discipline and a clear priority plan make a configuration easier to maintain. They also help when teams need to understand why one rule runs before another months after the original setup.

A careful way to troubleshoot evaluation order

When traffic doesn’t behave as expected, don’t start by changing several priorities at once. First, inspect the policies bound to the relevant vServer and note their numeric priorities. Then review the policy expressions and actions in that order.

Pay special attention to three things:

  • Overlapping expressions: Two policies may match the same request or session.

  • Terminal actions: A matching policy may stop the remaining evaluation.

  • Flow changes: A goto setting may send processing to a different priority.

Then compare the observed behavior with the intended path. If a user should match a specific access rule before a general rule, confirm that the specific rule has the earlier numeric priority and that nothing before it ends evaluation. If a later rule seems to be skipped, the cause may be a stopping action—or a jump—not an incorrect policy name or type.

For a complicated configuration, reviewing the path in a small table can help:

| Policy | Priority | Expected match | Flow after evaluation |

|---|---:|---|---|

| Specific access rule | 10 | Members of a defined group | Continue or stop, as configured |

| Session setting rule | 20 | Selected connection conditions | Continue or stop, as configured |

| General access rule | 100 | Broad fallback condition | Usually handles remaining traffic |

The values here are illustrative. What matters is that the sequence and flow match the design.

Keep the logic readable

Policy priority is a small setting with a large role. Lower numbers run earlier, but the full behavior also depends on each policy’s expression, action, and any goto configuration. Names and types help describe a policy; they don’t control its position.

When those pieces are clear, a vServer’s behavior becomes much easier to explain. Specific rules can be evaluated before broad ones, and administrators can trace how traffic moves through the policy chain. That’s the real goal: not just a tidy list, but a sequence that makes sense—and keeps making sense when someone else has to maintain it.