REST API - queryLastPage

The table summarizes the REST API - queryLastPage.

Request

Format
GET <baseurl>/process/query/last/<pagingid>
Path parameters pagingid: Identifies a particular set of data that can be paged (like a database cursor).

This is obtained when a query is paged by submitting -1 or a number greater than 0 for the pagesize parameter when calling the following: queryProcessInstances, queryProcessInstancesAlt, queryProcessTemplates, and queryProcessTemplatesAlt.

Response

JSON Returns a JSON representation of the content of the page element.
XML Returns the content of the page element (from the ProcessManagement schema).

Example

Request
GET <baseurl>/process/query/last/630511316
Response
{

  "proc:processInstances": {

    "@xmlns:proc": "http://www.tibco.com/bx/2009/management/processManagerType",

    "proc:processInstance": [

      {

        "proc:customAttributes": {

          "proc:customAttribute": {

            "proc:name": "ContactName",

            "proc:value": "Terry Poll"

          }

        }

      },

      {

        "proc:customAttributes": {

          "proc:customAttribute": {

            "proc:name": "ContactName",

            "proc:value": "Nancy Cary"

          }

        }

      },

      {

        "proc:customAttributes": {

          "proc:customAttribute": {

            "proc:name": "ContactName",

            "proc:value": "Will Bennet"

          }

        }

      }

    ]

  }

}