AnsweredAssumed Answered

can't start a process instance by REST API

Question asked by jerrylo on Apr 9, 2014
Latest reply on Dec 26, 2016 by kohir_rajesh@yahoo.com
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%3A1%3A36','key':'createTimersProcess','version':1,'name':'Create 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.168.75.199:8080/activiti-rest/service/repository/deployments/20/resources/createTimersProcess.bpmn20.xml','diagramResource':null,'category':'Examples','graphicalNotationDefined':false,'suspended':false,'startFormDefined':false}],"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 ?

Outcomes