AnsweredAssumed Answered

rest api query/historic-process-instances

Question asked by liuyong on Feb 8, 2014
Latest reply on Sep 1, 2014 by ccavero
used api query/historic-process-instances, and body is
{
"processDefinitionId" : "myProcess:1:108",
  "variables" : [ ]
},
the Response is
{
  "data": [
    {
      "id": "109",
      "url": "http://localhost:8080/activiti-explorer/service/history/historic-process-instances/109",
      "businessKey": null,
      "processDefinitionId": "myProcess:1:108",
      "processDefinitionUrl": "http://localhost:8080/activiti-explorer/service/repository/process-definitions/myProcess%3A1%3A108",
      "startTime": "2014-01-23T10:02:18.993+0000",
      "endTime": "2014-01-23T10:03:00.003+0000",
      "durationInMillis": 41010,
      "startUserId": "test",
      "startActivityId": "startevent1",
      "endActivityId": "endevent1",
      "deleteReason": null,
      "superProcessInstanceId": null,
      "variables": []
    }
  ],
  "total": 1,
  "start": 0,
  "sort": "processInstanceId",
  "order": "asc",
  "size": 1
}
but the quest body is
{
  "id" : "109",
  "variables" : [
  ]
}
the Response  is
{
  "errorMessage": "Unsupported Media Type",
  "statusCode": 415
},
someone can tell me the reason

Outcomes