Queries for the number of historic identity link logs that fulfill the given parameters.Takes the same parameters as the Get Identity-Link-Logs method.

Method

GET /history/identity-link-log/count

Parameters

Query Parameters

Name Description
type Restricts to identity links that have the given type(candidate/assignee/owner).
userId Restricts to identity links that have the given user id.
groupId Restricts to identity links that have the given group id.
dateBefore Restricts to identity links that have the time before the given time.
dateAfter Restricts to identity links that have the time after the given time.
taskId Restricts to identity links that have the given task id.
processDefinitionId Restricts to identity links that have the given process definition id.
processDefinitionKey Restricts to identity links that have the given process definition key.
operationType Restricts to identity links that have the given operationType (add/delete).
assignerId Restricts to identity links that have the given assigner id.
tenantIdIn Filter by a comma-separated list of tenant ids.

Result

A JSON object that contains the count as the only property.

Name Value Description
count Number The number of matching executions.

Response Codes

Code Media type Description
200 application/json Request successful.
400 application/json Returned if some of the query parameters are invalid, for example if a sortOrder parameter is supplied, but no sortBy. See the Introduction for the error response format.

Example

Request

GET /history/identity-link-log/count?taskId=aTaskId

Response

  1. {"count": 2}

原文: https://docs.camunda.org/manual/7.9/reference/rest/history/identity-links/get-identity-link-query-count/