Skip to main content
GET
/
history
/
activity-instance
/
count
Get List Count
curl --request GET \
  --url http://{host}:{port}/{contextPath}/history/activity-instance/count \
  --header 'Authorization: Basic <encoded-value>'
{
  "count": 1
}

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

activityInstanceId
string

Filter by activity instance id.

processInstanceId
string

Filter by process instance id.

processDefinitionId
string

Filter by process definition id.

executionId
string

Filter by the id of the execution that executed the activity instance.

activityId
string

Filter by the activity id (according to BPMN 2.0 XML).

activityName
string

Filter by the activity name (according to BPMN 2.0 XML).

activityType
string

Filter by activity type.

taskAssignee
string

Only include activity instances that are user tasks and assigned to a given user.

finished
boolean

Only include finished activity instances. Value may only be true, as false behaves the same as when the property is not set.

unfinished
boolean

Only include unfinished activity instances. Value may only be true, as false behaves the same as when the property is not set.

canceled
boolean

Only include canceled activity instances. Value may only be true, as false behaves the same as when the property is not set.

completeScope
boolean

Only include activity instances which completed a scope. Value may only be true, as false behaves the same as when the property is not set.

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.

tenantIdIn
string

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

withoutTenantId
boolean

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

Response

Request successful.

count
integer

The number of matching instances.