Skip to main content

Query for historic process instances

Swagger UIyaml
post/process-api/query/historic-process-instances

All supported JSON parameter fields allowed are exactly the same as the parameters found for getting a collection of historic process instances, but passed in as JSON-body arguments rather than URL-parameters to allow for more advanced querying and preventing errors with request-uri’s that are too long. On top of that, the query allows for filtering based on process variables. The variables property is a JSON-array containing objects with the format as described here.

Request body application/json · HistoricProcessInstanceQueryRequest

startinteger
sizeinteger
sortstring
orderstring
processInstanceIdstring
processInstanceIdsstring[]
processInstanceNamestring
processInstanceNameLikestring
processInstanceNameLikeIgnoreCasestring
processBusinessKeystring
processBusinessKeyLikestring
processBusinessKeyLikeIgnoreCasestring
processBusinessStatusstring
processBusinessStatusLikestring
processBusinessStatusLikeIgnoreCasestring
processDefinitionIdstring
processDefinitionKeystring
processDefinitionKeyLikestring
processDefinitionKeyLikeIgnoreCasestring
processDefinitionKeysstring[]
excludeProcessDefinitionKeysstring[]
processDefinitionKeyInstring[]
processDefinitionKeyNotInstring[]
processDefinitionNamestring
processDefinitionNameLikestring
processDefinitionNameLikeIgnoreCasestring
processDefinitionVersioninteger
processDefinitionCategorystring
processDefinitionCategoryLikestring
processDefinitionCategoryLikeIgnoreCasestring
deploymentIdstring
deploymentIdInstring[]
superProcessInstanceIdstring
excludeSubprocessesboolean
finishedboolean
activeActivityIdstring
activeActivityIdsstring[]
involvedUserstring
finishedAfterdate-time
finishedBeforedate-time
startedAfterdate-time
startedBeforedate-time
startedBystring
finishedBystring
statestring
includeProcessVariablesboolean
includeProcessVariablesNamesstring[]
callbackIdstring
callbackIdsstring[]
callbackTypestring
parentCaseInstanceIdstring
withoutCallbackIdboolean
tenantIdstring
tenantIdLikestring
tenantIdLikeIgnoreCasestring
withoutTenantIdboolean
rootScopeIdstring
rootScopeIdsstring[]
parentScopeIdstring
parentScopeIdsstring[]

Responses

Indicates request was successful and the process instances are returned · DataResponseHistoricProcessInstanceResponse

totalinteger
startinteger
sortstring
orderstring
sizeinteger

requiredGrey names have no description in the spec