Skip to main content
GET
/
history
/
process-instance
Get List
curl --request GET \
  --url http://{host}:{port}/{contextPath}/history/process-instance \
  --header 'Authorization: Basic <encoded-value>'
[
  {
    "id": "7c80cc8f-ef95-11e6-b6e6-34f39ab71d4e",
    "businessKey": null,
    "processDefinitionId": "invoice:1:7bf79f13-ef95-11e6-b6e6-34f39ab71d4e",
    "processDefinitionKey": "invoice",
    "processDefinitionName": "Invoice Receipt",
    "processDefinitionVersion": 1,
    "startTime": "2017-02-10T14:33:19.000+0200",
    "endTime": null,
    "removalTime": null,
    "durationInMillis": null,
    "startUserId": null,
    "startActivityId": "StartEvent_1",
    "deleteReason": null,
    "rootProcessInstanceId": "f8259e5d-ab9d-11e8-8449-e4a7a094a9d6",
    "superProcessInstanceId": null,
    "superCaseInstanceId": null,
    "caseInstanceId": null,
    "tenantId": null,
    "state": "ACTIVE",
    "restartedProcessInstanceId": "2bef365d-3406-11ef-bd73-0a0027000003"
  }
]

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

sortBy
enum<string>

Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter.

Available options:
instanceId,
definitionId,
definitionKey,
definitionName,
definitionVersion,
businessKey,
startTime,
endTime,
duration,
tenantId
sortOrder
enum<string>

Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter.

Available options:
asc,
desc
firstResult
integer

Pagination of results. Specifies the index of the first result to return.

maxResults
integer

Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left.

processInstanceId
string

Filter by process instance id.

processInstanceIds
string

Filter by process instance ids. Filter by a comma-separated list of Strings.

processDefinitionId
string

Filter by the process definition the instances run on.

processDefinitionKey
string

Filter by the key of the process definition the instances run on.

processDefinitionKeyIn
string

Filter by a list of process definition keys. A process instance must have one of the given process definition keys. Filter by a comma-separated list of Strings.

processDefinitionName
string

Filter by the name of the process definition the instances run on.

processDefinitionNameLike
string

Filter by process definition names that the parameter is a substring of.

processDefinitionKeyNotIn
string

Exclude instances that belong to a set of process definitions. Filter by a comma-separated list of Strings.

processInstanceBusinessKey
string

Filter by process instance business key.

processInstanceBusinessKeyIn
string

Filter by a list of business keys. A process instance must have one of the given business keys. Filter by a comma-separated list of Strings

processInstanceBusinessKeyLike
string

Filter by process instance business key that the parameter is a substring of.

rootProcessInstances
boolean

Restrict the query to all process instances that are top level process instances.

finished
boolean

Only include finished process instances. This flag includes all process instances that are completed or terminated. Value may only be true, as false is the default behavior.

unfinished
boolean

Only include unfinished process instances. Value may only be true, as false is the default behavior.

withIncidents
boolean

Only include process instances which have an incident. Value may only be true, as false is the default behavior.

withRootIncidents
boolean

Only include process instances which have a root incident. Value may only be true, as false is the default behavior.

incidentIdIn
string

Restrict to instances that have an incident with one of the given ids. Filter by a comma-separated list of Strings

incidentType
string

Filter by the incident type. See the User Guide for a list of incident types.

incidentStatus
enum<string>

Only include process instances which have an incident in status either open or resolved. To get all process instances, use the query parameter withIncidents.

Available options:
open,
resolved
incidentMessage
string

Filter by the incident message. Exact match.

incidentMessageLike
string

Filter by the incident message that the parameter is a substring of.

startedBefore
string<date-time>

Restrict to instances that were started before the given date. By default, the date must have the format yyyy-MM-dd'T'HH:mm:ss.SSSZ, e.g., 2013-01-23T14:42:45.000+0200.

startedAfter
string<date-time>

Restrict to instances that were started after the given date. By default, the date must have the format yyyy-MM-dd'T'HH:mm:ss.SSSZ, e.g., 2013-01-23T14:42:45.000+0200.

finishedBefore
string<date-time>

Restrict to instances that were finished before the given date. By default, the date must have the format yyyy-MM-dd'T'HH:mm:ss.SSSZ, e.g., 2013-01-23T14:42:45.000+0200.

finishedAfter
string<date-time>

Restrict to instances that were finished after the given date. By default, the date must have the format yyyy-MM-dd'T'HH:mm:ss.SSSZ, e.g., 2013-01-23T14:42:45.000+0200.

executedActivityAfter
string<date-time>

Restrict to instances that executed an activity after the given date (inclusive). By default, the date must have the format yyyy-MM-dd'T'HH:mm:ss.SSSZ, e.g., 2013-01-23T14:42:45.000+0200.

executedActivityBefore
string<date-time>

Restrict to instances that executed an activity before the given date (inclusive). By default, the date must have the format yyyy-MM-dd'T'HH:mm:ss.SSSZ, e.g., 2013-01-23T14:42:45.000+0200.

executedJobAfter
string<date-time>

Restrict to instances that executed an job after the given date (inclusive). By default, the date must have the format yyyy-MM-dd'T'HH:mm:ss.SSSZ, e.g., 2013-01-23T14:42:45.000+0200.

executedJobBefore
string<date-time>

Restrict to instances that executed an job before the given date (inclusive). By default, the date must have the format yyyy-MM-dd'T'HH:mm:ss.SSSZ, e.g., 2013-01-23T14:42:45.000+0200.

startedBy
string

Only include process instances that were started by the given user.

superProcessInstanceId
string

Restrict query to all process instances that are sub process instances of the given process instance. Takes a process instance id.

subProcessInstanceId
string

Restrict query to one process instance that has a sub process instance with the given id.

superCaseInstanceId
string

Restrict query to all process instances that are sub process instances of the given case instance. Takes a case instance id.

subCaseInstanceId
string

Restrict query to one process instance that has a sub case instance with the given id.

caseInstanceId
string

Restrict query to all process instances that are sub process instances of the given case instance. Takes a case instance id.

tenantIdIn
string

Filter by a list of tenant ids. A process instance must have one of the given tenant ids. Filter by a comma-separated list of Strings

withoutTenantId
boolean

Only include historic process instances which belong to no tenant. Value may only be true, as false is the default behavior.

activityIdIn
string

Restrict to instances with an active activity with one of the given ids. In contrast to the activeActivityIdIn filter, it can query for async and incident activities. Filter by a comma-separated list of Strings

executedActivityIdIn
string

Restrict to instances that executed an activity with one of given ids. Filter by a comma-separated list of Strings

activeActivityIdIn
string

Restrict to instances that have an active activity with one of given ids. Filter by a comma-separated list of Strings

active
boolean

Restrict to instances that are active.

suspended
boolean

Restrict to instances that are suspended.

completed
boolean

Restrict to instances that are completed.

externallyTerminated
boolean

Restrict to instances that are externallyTerminated.

internallyTerminated
boolean

Restrict to instances that are internallyTerminated.

variables
string

Only include process instances that have/had variables with certain values. Variable filtering expressions are comma-separated and are structured as follows: A valid parameter value has the form key_operator_value. key is the variable name, operator is the comparison operator to be used and value the variable value.

Note: Values are always treated as String objects on server side.

Valid operator values are: eq - equal to; neq - not equal to; gt - greater than; gteq - greater than or equal to; lt - lower than; lteq - lower than or equal to; like.

Key and value may not contain underscore or comma characters.

variableNamesIgnoreCase
boolean

Match all variable names provided in variables case-insensitively. If set to true variableName and variablename are treated as equal.

variableValuesIgnoreCase
boolean

Match all variable values provided in variables case-insensitively. If set to true variableValue and variablevalue are treated as equal.

Response

Request successful.

id
string | null

The id of the process instance.

rootProcessInstanceId
string | null

The process instance id of the root process instance that initiated the process.

superProcessInstanceId
string | null

The id of the parent process instance, if it exists.

superCaseInstanceId
string | null

The id of the parent case instance, if it exists.

caseInstanceId
string | null

The id of the parent case instance, if it exists.

processDefinitionName
string | null

The name of the process definition that this process instance belongs to.

processDefinitionKey
string | null

The key of the process definition that this process instance belongs to.

processDefinitionVersion
integer | null

The version of the process definition that this process instance belongs to.

processDefinitionId
string | null

The id of the process definition that this process instance belongs to.

businessKey
string | null

The business key of the process instance.

startTime
string<date-time> | null

The time the instance was started. Default format yyyy-MM-dd'T'HH:mm:ss.SSSZ.

endTime
string<date-time> | null

The time the instance ended. Default format yyyy-MM-dd'T'HH:mm:ss.SSSZ.

removalTime
string<date-time> | null

The time after which the instance should be removed by the History Cleanup job. Default format yyyy-MM-dd'T'HH:mm:ss.SSSZ.

durationInMillis
integer | null

The time the instance took to finish (in milliseconds).

startUserId
string | null

The id of the user who started the process instance.

startActivityId
string | null

The id of the initial activity that was executed (e.g., a start event).

deleteReason
string | null

The provided delete reason in case the process instance was canceled during execution.

tenantId
string | null

The tenant id of the process instance.

state
enum<string> | null

Last state of the process instance, possible values are:

ACTIVE - running process instance

SUSPENDED - suspended process instances

COMPLETED - completed through normal end event

EXTERNALLY_TERMINATED - terminated externally, for instance through REST API

INTERNALLY_TERMINATED - terminated internally, for instance by terminating boundary event

Available options:
ACTIVE,
SUSPENDED,
COMPLETED,
EXTERNALLY_TERMINATED,
INTERNALLY_TERMINATED
restartedProcessInstanceId
string | null

The id of the original process instance which was restarted.