Process Instance

Get List

Queries for process instances that fulfill given parameters. Parameters may be static as well as dynamic runtime properties of process instances. The size of the result set can be retrieved by using the Get Instance Count method.

get/process-instance

Request

  • Base URL: http://localhost:8080/engine-rest
  • URL: http://localhost:8080/engine-rest/process-instance
  • Auth: HTTP basic

Query parameters

sortBy'instanceId' | 'definitionKey' | 'definitionId' | 'tenantId' | 'businessKey'

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

sortOrder'asc' | 'desc'

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.

firstResultinteger

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

maxResultsinteger

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

processInstanceIdsstring

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

businessKeystring

Filter by process instance business key.

businessKeyLikestring

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

caseInstanceIdstring

Filter by case instance id.

processDefinitionIdstring

Filter by the deployment the id belongs to.

processDefinitionKeystring

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

processDefinitionKeyInstring

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

processDefinitionKeyNotInstring

Exclude instances by a comma-separated list of process definition keys. A process instance must not have one of the given process definition keys.

deploymentIdstring

Filter by the deployment the id belongs to.

superProcessInstancestring

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

subProcessInstancestring

Restrict query to all process instances that have the given process instance as a sub process instance. Takes a process instance id.

superCaseInstancestring

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

subCaseInstancestring

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

activeboolean

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

suspendedboolean

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

withIncidentboolean

Filter by presence of incidents. Selects only process instances that have an incident.

incidentIdstring

Filter by the incident id.

incidentTypestring

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

incidentMessagestring

Filter by the incident message. Exact match.

incidentMessageLikestring

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

tenantIdInstring

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

withoutTenantIdboolean

Only include process instances which belong to no tenant.

processDefinitionWithoutTenantIdboolean

Only include process instances which process definition has no tenant id.

activityIdInstring

Filter by a comma-separated list of activity ids. A process instance must currently wait in a leaf activity with one of the given activity ids.

rootProcessInstancesboolean

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

rootProcessInstanceIdstring

Filter by root process instance id.

leafProcessInstancesboolean

Restrict the query to all process instances that are leaf instances. (i.e. don't have any sub instances).

variablesstring

Only include process instances that have 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.

variableNamesIgnoreCaseboolean

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

variableValuesIgnoreCaseboolean

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

Response

Request successful.

idstring nullable

The id of the process instance.

definitionIdstring nullable

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

definitionKeystring nullable

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

businessKeystring nullable

The business key of the process instance.

caseInstanceIdstring nullable

The id of the case instance associated with the process instance.

endedboolean nullable

A flag indicating whether the process instance has ended or not. Deprecated: will always be false!

suspendedboolean nullable

A flag indicating whether the process instance is suspended or not.

tenantIdstring nullable

The tenant id of the process instance.

Changes

No recorded changes to this operation across all 1 revision of this API.