Unable to retrieve data by id after initial request to Camunda

My process ClientValidation is defined in camunda UI:
http://192.168.111.109:8080/camunda/app/cockpit/default/

I make a [nodejs] request to it with my data to URL:
/engine-rest/process-definition/key/client-validation/submit-form

and receive this response:
links=[method=GET, href=http://192.168.111.109:8080/engine-rest/process-instance/9a08b66e-183e-11e6-a852-080027bf700c, rel=self], id=9a08b66e-183e-11e6-a852-080027bf700c, definitionId=client-validation:1:6c17e60e-11e4-11e6-b3be-0800274f2cef, businessKey=null, caseInstanceId=null, ended=true, suspended=false

Now I try to retrieve data and this is what I get from these three REST requests:

/engine-rest/process-instance/9a08b66e-183e-11e6-a852-080027bf700c
{“type”: “InvalidRequestException”,“message”: “Process instance with id 9a08b66e-183e-11e6-a852-080027bf700c does not exist”}

/engine-rest/task/?processInstanceId=9a08b66e-183e-11e6-a852-080027bf700c
[]

/engine-rest/process-instance/?processInstanceId=9a08b66e-183e-11e6-a852-080027bf700c
[
{“links”: [],“id”: “076c2f2d-11d7-11e6-b3be-0800274f2cef”,“definitionId”: “invoice:1:07222db1-11d7-11e6-b3be-0800274f2cef”,“businessKey”: null,“caseInstanceId”: null,“ended”: false,“suspended”: false},{“links”: [],“id”: “083069ad-11d7-11e6-b3be-0800274f2cef”,“definitionId”: “invoice:1:07222db1-11d7-11e6-b3be-0800274f2cef”,“businessKey”: null,“caseInstanceId”: null,“ended”: false,“suspended”: false},

]

In the last response you see ‘invoice’ which is default Invoice Receipt process definition from demo Camunda.

Could you please guide me where might be the problem? I am unable to retrieve any results by id.

Could it be also incorrect definition of the process? I deploy war file like this
mvn clean install
cp target/client-process-0.8.5-SNAPSHOT.war /home/vagrant/camunda/server/apache-tomcat-8.0.24/webapps/

Hi John,

it seems that your process instance is already ended.

To get historic process instances use /history/process-instance/{id}

Does this help you?

Greetings,
Philipp