How i start a case using API REST?
Hi ,
when i start a process using execute button into bonita studio , it redirected me to bonita portal page where there are a button, for start a case .
So my question is :
How i create a similar button in my page , where allow me to start a case?
i'm using PHP CURL and now i managed to obtain processDefinitionId.
regards.
Hello,
I'm having some issues using the POST method with starting a case. I'm using Advance Rest Client.
calling
http://localhost:8080/API/bpm/case with appropriate cookie.
and "processDefinitionId":"7711998709027698277"
<head><title>Apache Tomcat/7.0.55 - 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 404 - /API/bpm/case</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/API/bpm/case</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.55</h3></body>
I'm able to get the API to work for gets and login call but not the start case.
Hello, claz08. It looks like you already found the information, but as reference for anyone else with the same question, you send a Post of ../API/bpm/case with the process definition id in the payload. You can get the process definition id with a Get of ../API/bpm/process with some search parameters.
There are a couple of examples of starting cases in [http://documentation.bonitasoft.com/bpm-api-1#case].
Comments
i resolved the problem, using bonita documentation and PHP-CURL