Process Instance

Get List Count (POST)

Queries for the number of process instances that fulfill the given parameters. This method takes the same message body as the Get Instances (POST) method and therefore it is slightly more powerful than the Get Instance Count method.

post/process-instance/count

Request

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

Request body

deploymentIdstring nullable

Filter by the deployment the id belongs to.

processDefinitionIdstring nullable

Filter by the process definition the instances run on.

processDefinitionKeystring nullable

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

processDefinitionKeyInstring[] nullable

Filter by a list of process definition keys. A process instance must have one of the given process definition keys. Must be a JSON array of Strings.

processDefinitionKeyNotInstring[] nullable

Exclude instances by a list of process definition keys. A process instance must not have one of the given process definition keys. Must be a JSON array of Strings.

businessKeystring nullable

Filter by process instance business key.

businessKeyLikestring nullable

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

caseInstanceIdstring nullable

Filter by case instance id.

superProcessInstancestring nullable

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

subProcessInstancestring nullable

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

superCaseInstancestring nullable

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

subCaseInstancestring nullable

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

activeboolean nullable

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

suspendedboolean nullable

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

processInstanceIdsstring[] nullable

Filter by a list of process instance ids. Must be a JSON array of Strings.

withIncidentboolean nullable

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

incidentIdstring nullable

Filter by the incident id.

incidentTypestring nullable

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

incidentMessagestring nullable

Filter by the incident message. Exact match.

incidentMessageLikestring nullable

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

tenantIdInstring[] nullable

Filter by a list of tenant ids. A process instance must have one of the given tenant ids. Must be a JSON array of Strings.

withoutTenantIdboolean nullable

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

processDefinitionWithoutTenantIdboolean nullable

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

activityIdInstring[] nullable

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

rootProcessInstancesboolean nullable

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

leafProcessInstancesboolean nullable

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

variableNamesIgnoreCaseboolean nullable

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

variableValuesIgnoreCaseboolean nullable

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

Response

Request successful.

countinteger

The number of matching instances.

Changes

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