AnsweredAssumed Answered

List all available process deployments and start a process instance via REST

Question asked by b.schnarr on Feb 10, 2014
Latest reply on Feb 17, 2014 by jbarrez
I want to list all available deployed processes in a user frontend via rest, chose one of them and start a process instance of the chosen process definition via rest.
According to the documentation, the REST POST-Method "http://host-ip/activiti-rest/service/runtime/process-instances" can start a process instance by process definition id or by process definition key.

I use the GET-Method http://host-ip/activiti-rest/service/repository/deployments to list all available processes. But as the result, I do not get the process definition id or the process definition key as an answer. Therefore, I can not start a process instance with this information.

When I try to list all process definitions with the GET-Method http://host-ip/activiti-rest/service/repository/process-definitions, I get the following error message back:

{
  "errorMessage": "unknown type 'user' approver",
  "statusCode": 400
}

Therefore my question: Which REST-Calls do I need to display all available processes and start process instances via rest?

Best regards
Ben

Outcomes