AnsweredAssumed Answered

Process Instance started over REST are not showing

Question asked by twiinart on Jun 15, 2016
Latest reply on Jun 22, 2016 by twiinart
I am trying to start a process instance over REST API with the below POST which seems to be working well:

POST http://localhost:8080/activiti-rest/service/runtime/process-instances
With the following json contant in the body:

    "variables": [

If I am posting this everything seem to be fine. I get an 201 Created and the following JSON answer:
  "id": "215305",
  "url": "http://localhost:8080/activiti-rest/service/runtime/process-instances/215305",
  "businessKey": null,
  "suspended": false,
  "ended": true,
  "processDefinitionId": "SimpleVariableProcess2:1:210004",
  "processDefinitionUrl": "http://localhost:8080/activiti-rest/service/repository/process-definitions/SimpleVariableProcess2:1:210004",
  "activityId": "endevent1",
  "variables": [],
  "tenantId": "",
  "completed": true

But If I am searching with a GET in all the process instances it does not show up there e.g:
GET http://localhost:8080/activiti-rest/service/runtime/process-instances/215305

With that I get 404 Not found and the JSON answer:
  "message": "Not found",
  "exception": "Could not find a process instance with id '215305'."

What am I doing wrong?

Thank you for your help