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, 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].

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”

Apache Tomcat/7.0.55 - Error report

HTTP Status 404 - /API/bpm/case


type Status report

message /API/bpm/case

description The requested resource is not available.


Apache Tomcat/7.0.55

I’m able to get the API to work for gets and login call but not the start case.

i resolved the problem, using bonita documentation and PHP-CURL