Skip to main content
Version: Next

Query process instances (alpha)

POST 

/process-instances/search

Search for process instances based on given criteria.

Note that this endpoint is an alpha feature and not enabled on Camunda clusters out of the box. The Camunda 8 API (REST) Overview page provides further details.

note

This endpoint is an alpha feature and may be subject to change in future releases.

Request

Body

    sort object[]
  • Array [
  • field stringrequired
    order string

    Default value: asc

  • ]
  • page object
    from int32
    limit int32
    searchAfter object[]
    searchBefore object[]
    filter object

    Process instance search filter.

    processInstanceKey object

    The key of this process instance.

    oneOf

    integer

    processDefinitionId string

    The process definition ID.

    processDefinitionName string

    The process definition name.

    processDefinitionVersion object

    The process definition version.

    oneOf

    integer

    processDefinitionVersionTag string

    The process definition version tag.

    processDefinitionKey object

    The process definition key.

    oneOf

    integer

    parentProcessInstanceKey object

    The parent process instance key.

    oneOf

    integer

    parentFlowNodeInstanceKey object

    The parent flow node instance key.

    oneOf

    integer

    treePath string

    The path of keys to this process instance, separated by '/'.

    startDate date-time

    The start date.

    endDate date-time

    The end date.

    state ProcessInstanceStateEnum

    Possible values: [ACTIVE, COMPLETED, CANCELED]

    The state, one of ACTIVE, COMPLETED, CANCELED.

    hasIncident boolean

    Whether this process instance has a related incident or not.

    tenantId string

    The tenant ID.

Responses

The process instance search result.

Schema
    page object
    totalItems int64
    firstSortValues object[]
    lastSortValues object[]
    items object[]
  • Array [
  • processInstanceKey int64

    The key of this process instance.

    processDefinitionId string

    The process definition ID.

    processDefinitionName string

    The process definition name.

    processDefinitionVersion int32

    The process definition version.

    processDefinitionVersionTag string

    The process definition version tag.

    processDefinitionKey int64

    The process definition key.

    parentProcessInstanceKey int64

    The parent process instance key.

    parentFlowNodeInstanceKey int64

    The parent flow node instance key.

    treePath string

    The path of keys to this process instance, separated by '/'.

    startDate date-time

    The start date.

    endDate date-time

    The end date.

    state ProcessInstanceStateEnum

    Possible values: [ACTIVE, COMPLETED, CANCELED]

    The state, one of ACTIVE, COMPLETED, CANCELED.

    hasIncident boolean

    Whether this process instance has a related incident or not.

    tenantId string

    The tenant ID.

  • ]
Loading...