Skip to main content
Version: Next

Query process instances

POST 

/process-instances/search

Search for process instances based on given criteria.

Request

Body

    sort object[]

    Sort field criteria.

  • Array [
  • field stringrequired

    The field to sort by.

    order SortOrderEnum

    Possible values: [ASC, DESC]

    Default value: ASC

    The order in which to sort the related field.

  • ]
  • page object

    Pagination criteria.

    from int32

    The index of items to start searching from.

    limit int32

    The maximum number of items to return in one request.

    searchAfter object[]

    Items to search after. Correlates to the lastSortValues property of a previous search response.

    searchBefore object[]

    Items to search before. Correlates to the firstSortValues property of a previous search response.

    filter object

    Process instance search filter.

    processInstanceKey object

    The key of this process instance.

    oneOf

    integer

    processDefinitionId object

    The process definition ID.

    oneOf

    string

    processDefinitionName object

    The process definition name.

    oneOf

    string

    processDefinitionVersion object

    The process definition version.

    oneOf

    integer

    processDefinitionVersionTag object

    The process definition version tag.

    oneOf

    string

    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

    startDate object

    The start date.

    oneOf

    string

    endDate object

    The end date.

    oneOf

    string

    state object

    The process instance state.

    oneOf
    $eq ProcessInstanceStateEnum

    Possible values: [ACTIVE, COMPLETED, CANCELED]

    Checks for equality with the provided value.

    $neq ProcessInstanceStateEnum

    Possible values: [ACTIVE, COMPLETED, CANCELED]

    Checks for inequality with the provided value.

    $exists boolean

    Checks if the current property exists.

    $in ProcessInstanceStateEnum[]

    Possible values: [ACTIVE, COMPLETED, CANCELED]

    Checks if the property matches any of the provided values.

    $like string

    Checks if the property matches the provided like value. Supported wildcard characters depend on the configured search client.

    hasIncident boolean

    Whether this process instance has a related incident or not.

    tenantId object

    The tenant ID.

    oneOf

    string

    variables object[]

    The process instance variables.

  • Array [
  • name string

    Name of the variable.

    value string

    The value of the variable.

  • ]

Responses

The process instance search result.

Schema
    page object

    Pagination information about the search results.

    totalItems int64

    Total items matching the criteria.

    firstSortValues object[]

    The sort values of the first item in the result set. Use this in the searchBefore field of an ensuing request.

    lastSortValues object[]

    The sort values of the last item in the result set. Use this in the searchAfter field of an ensuing request.

    items object[]

    The matching process instances.

  • Array [
  • processInstanceKey string

    The key of this process instance.

    processDefinitionKey string

    The process definition key.

    parentProcessInstanceKey string

    The parent process instance key.

    parentFlowNodeInstanceKey string

    The parent flow node instance key.

  • ]
Loading...