REST API bpm/caseVariable what is variable_id source

1
+1
-1

The REST API documents that for a bpm/caseVariable GET request, you need the case_id and the variable_id. I can find the case_id from bpm/case GET but where does the variable_id come from? I haven't seen it returned in any of the REST API that I've used to date.

It would be really helpful if the JSON structure for each of the calls was listed in the documentation.

1 answer

1
+2
-1

Hi,

"variable_id" is actually the variable name. So, in order to get the value of variable "myvar" in the case with id 2 use:

http://host:port/bonita/API/bpm/caseVariable/2/myvar

In order to get all variables of a given case take a look here http://documentation.bonitasoft.com/web-rest-api-examples (get process instance data values)

Regards,

Notifications