Method

POST

Parameters

|firstResult|Pagination of results. Specifies the index of the first result to return.
|maxResults|Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left.


|sortBy|Mandatory. Sort the results lexicographically by a given criterion. Valid values are activityInstanceID, instanceId, executionId, activityId, activityName, activityType, startTime, endTime, duration, definitionId, occurrence and tenantId.|sortOrder|Mandatory. Sort the results in a given order. Values may be asc for ascending order or desc for descending order.
|sortBy|Mandatory. Sort the results lexicographically by a given criterion. Valid values are activityInstanceID, instanceId, executionId, activityId, activityName, activityType, startTime, endTime, duration, definitionId, occurrence and .
|sortOrder|Mandatory. Sort the results in a given order. Values may be asc for ascending order or desc for descending order.

  • For further information, please see the .

Result

Response Codes

Example

POST /history/activity-instance

Request Body:

  1. {
  2. "activityId": "anActivity",
  3. "activityName": "anActivityName",
  4. "activityType": "userTask",
  5. "assignee": "peter",
  6. "calledProcessInstanceId": "aHistoricCalledProcessInstanceId",
  7. "calledCaseInstanceId": null,
  8. "canceled": true,
  9. "completeScope": false,
  10. "durationInMillis": 2000,
  11. "executionId": "anExecutionId",
  12. "id": "aHistoricActivityInstanceId",
  13. "parentActivityInstanceId": "aHistoricParentActivityInstanceId",
  14. "processDefinitionId": "aProcDefId",
  15. "processInstanceId": "aProcInstId",
  16. "startTime": "2013-04-23T11:20:43.000+0200",
  17. "taskId": "aTaskId",
  18. "tenantId":null
  19. ]