I have created a process and deployed in the server, all I need to know is there any way I could able to kick off the process through the REST API, for instance my process name select-application, which accepts one parameter application name, how I can start this process using REST, I can do this via Camunda web page by calling start process, but I wanted to create the process through REST call.
Thanks in advance.
Regards,
Sudhakar S
{"id":"sud-approve-loan:22:fee736d9-5e23-11e5-868b-28d2441d2503","key":"sud-approve-loan","category":"http://activiti.org/bpmn","description":null,"name":"Sud Loan Approval","version":22,"resource":"sud-loan-approval.bpmn","deploymentId":"fee1b896-5e23-11e5-868b-28d2441d2503","diagram":"sud-loan-approval.png","suspended":false}{"approved":{"type":"String","value":null,"valueInfo":{}}}
All Iam trying is to invoke the process through REST API(http://localhost:8080/engine-rest/process-definition/key/sud-approve-loan/start) and the body is
{"variables":
{"approved" : {"value" : "CBUS", "type": "String"}},
"businessKey" : "123"
}
Iam getting the below response
<html><head><title>Apache Tomcat/7.0.62 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 415 - Cannot consume content type</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>Cannot consume content type</u></p><p><b>description</b> <u>The server refused this request because the request entity is in a format not supported by the requested resource for the requested method.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.62</h3></body></html>Hi Sudhakar,[p]g
--
You received this message because you are subscribed to a topic in the Google Groups "camunda BPM users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/camunda-bpm-users/rQhxiy8cnGg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/40307b0e-8bb5-40f3-a9f1-83203c022d67%40googlegroups.com.
Hello Rob,
Thanks a lot for your suggestions, it looks much promising, I will take your advice and implement the solutiom.Thanks again
Sudhakar S
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/1301196f-2a3a-41ae-8c2b-d49417cac4b4%40googlegroups.com.