---
title: SequenceHandler
description: Processes a request through a sequence of handlers and post conditions, as follows:
component: pinggateway
version: 2026
page_id: pinggateway:reference:SequenceHandler
canonical_url: https://docs.pingidentity.com/pinggateway/2026/reference/SequenceHandler.html
revdate: 2025-08-26T18:26:39Z
section_ids:
  SequenceHandler-usage: Usage
  SequenceHandler-properties: Properties
---

# SequenceHandler

Processes a request through a sequence of handlers and post conditions, as follows:

* A request is treated by `handler1`, and then `postcondition1` is evaluated.

* If `postcondition1` is true, the request is then treated by `handler2`, and so on.

```none
{
  "handler": handler1,
  "postcondition": expression1
},
{
  "handler": handler2,
  "postcondition": expression2
},
...
```

Use this handler for multi-request processing, such as retrieving a form, extracting form content (for example, a nonce), and then submitting it in a subsequent request.

## Usage

```none
{
    "name": string,
    "type": "SequenceHandler",
    "config": {
        "bindings": [
            {
                "handler": Handler reference,
                "postcondition": runtime condition<boolean>
            }
        ]
    }
}
```

## Properties

* `"bindings"`: *array of [objects](preface.html#definition-object), required*

  A list of handler and postcondition bindings.

* `"handler"`: *Handler [reference](preface.html#definition-reference), required*

  The [handler](Handlers.html) to dispatch the request to when it is the first handler in the bindings, or for subsequent handlers when their previous `postcondition` yields `true`.

  Provide the name of a Handler object defined in the heap or an inline Handler configuration object.

* `"postcondition"`: *runtime condition<[boolean](preface.html#definition-boolean)>, optional*

  A flag defined using a [condition](Conditions.html) to indicate that a post condition is met:

  * `true`: The request is dispatched to the next handler in `bindings`.

  * `false`: The sequence stops.

  Default: `true`
