Retrieves a historic case instance by id, according to the HistoricCaseInstance interface in the engine.

Method

GET /history/case-instance/{id}

Parameters

Path Parameters

Name Description
id The id of the historic case instance to be retrieved.

Result

A JSON object corresponding to the HistoricCaseInstance interface in the engine.Its properties are as follows:

Name Value Description
id String The id of the case instance.
businessKey String The business key of the case instance.
caseDefinitionName String The name of the case definition that this case instance belongs to.
caseDefinitionKey String The key of the case definition that this case instance belongs to.
caseDefinitionId String The id of the case definition that this case instance belongs to.
createTime String The time the instance was created. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
closeTime String The time the instance was closed. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
durationInMillis Number The time the instance took to finish (in milliseconds).
createUserId String The id of the user who created the case instance.
superCaseInstanceId String The id of the parent case instance, if it exists.
superProcessInstanceId String The id of the parent parent instance, if it exists.
tenantId String The tenant id of the case instance.
active Boolean If true, this case instance is active.
completed Boolean If true, this case instance is completed.
terminated Boolean If true, this case instance is terminated.
failed Boolean If true, this case instance is failed.
suspended Boolean If true, this case instance is suspended.
closed Boolean If true, this case instance is closed.

Response Codes

Code Media type Description
200 application/json Request successful.
404 application/json Historic case instance with given id does not exist. See the Introduction for the error response format.

Example

Request

GET /history/case-instance/aCaseInstId

Response

  1. {
  2. "id": "aCaseInstId",
  3. "businessKey": "aKey",
  4. "caseDefinitionId": "aCaseDefId",
  5. "createTime": "2013-03-23T13:42:43.000+0200",
  6. "closeTime": "2013-03-23T13:42:45.000+0200",
  7. "durationInMillis": 2000,
  8. "createUserId": "aStartUserId",
  9. "superCaseInstanceId": "aSuperCaseInstanceId",
  10. "superProcessInstanceId": null,
  11. "tenantId": null,
  12. "active": true,
  13. "completed": false,
  14. "terminated": false,
  15. "failed": false,
  16. "suspended": false,
  17. "closed": false
  18. }

原文: https://docs.camunda.org/manual/7.9/reference/rest/history/case-instance/get-case-instance/