cancel
Showing results for 
Search instead for 
Did you mean: 

can't start a process instance by REST API

jerrylo
Champ in-the-making
Champ in-the-making
I can't start the demo "createTimersProcess" process by REST API, the activiti version is 5.15.1.

my operations as the follow:

step 1. in RESTClient, I input
method: GET
url: http://kermit:kermit@192.168.75.199:8080/activiti-rest/service/repository/process-definitions

response is normal:
{"data":[{"id":"createTimersProcess:1:36","url":"http://192.168.75.199:8080/activiti-rest/service/repository/process-definitions/createTimersProcess%... timers process","description":"Test process to create a number of timers.","deploymentId":"20","deploymentUrl":"http://192.168.75.199:8080/activiti-rest/service/repository/deployments/20','resource':'http://192.1...}],"total":1,"start":0,"sort":"name","order":"asc","size":1}

step 2.
method: POST
url: http://kermit:kermit@192.168.75.199:8080/activiti-rest/service/runtime/process-instances
body: {"processDefinitionKey":"createTimersProcess"}

response is:
{"errorMessage":"The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method","statusCode":415}

is there anyone meet the same problem ?
12 REPLIES 12

Hi,

 I am also facing the same issue.Can you please tell me the reason.

I  am making the following rest call.

http://kermit:kermit@localhost:8090/actviti-rest/service/identity/users 

OR

http://kermit:kermit@172.20.184.27:8090/actviti-rest/service/identity/users 

I have give Content-Type and Accept in Header as 'application/json'

Response

Html format:

<h1>HTTP Status 404 - /actviti-rest/service/identity/users</h1>
<HR size="1" noshade="noshade">
<p>
<b>type</b> Status report
</p>
<p>
<b>message</b>
<u>/actviti-rest/service/identity/users</u>
</p>
<p>
<b>description</b>
<u>The requested resource is not available.</u>
</p>
<HR size="1" noshade="noshade">
<h3>Apache Tomcat/7.0.52</h3>
</body>
</html>

muthaks
Champ in-the-making
Champ in-the-making
can you please supply the method or code you used

dungdv24
Champ on-the-rise
Champ on-the-rise

Please, Help me.
Error: 500

{
"message": "Internal server error",
"exception": "Invalid license: no new process instances can be started"
}