Get Decision Definitions Count

Request the number of decision definitions that fulfill the query criteria. Takes the same filtering parameters as the GET query.

Method

GET /decision-definition/count

Parameters

Query Parameters

Name Description
decisionDefinitionId Filter by decision definition id.
decisionDefinitionIdIn Filter by decision definition ids.
name Filter by decision definition name.
nameLike Filter by decision definition names that the parameter is a substring of.
deploymentId Filter by the deployment the id belongs to.
key Filter by decision definition key, i.e. the id in the DMN 1.0 XML. Exact match.
keyLike Filter by decision definition keys that the parameter is a substring of.
category Filter by decision definition category. Exact match.
categoryLike Filter by decision definition categories that the parameter is a substring of.
version Filter by decision definition version.
latestVersion Only include those decision definitions that are latest versions. Value may only be true, as false is the default behavior.
resourceName Filter by the name of the decision definition resource. Exact match.
resourceNameLike Filter by names of those decision definition resources that the parameter is a substring of.

Result

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

Name Value Description
count Number The number of matching decision definitions.

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 /decision-definition/count?key=myDecisionKey&version=2

Response

{
  "count": 1
}

On this Page: