How to insert a variable value creating a case using REST

1
0
-1

Hi. I'm using Bonita 6.2.

I need to create a case and pass a value to a global variable using REST. Reading the REST api, i found the caseVariable to do operations with them. But to do this i need:

  • create a case
  • use caseVariable (using get request) to search variable and
  • update his value

Is possible set this value while creating the case, using bpm/case api? I tried pass the variable's name and value as part of atributes to call bpm/case to create a case but the variable was not setted.

Thanks.

2 answers

1
+2
-1
This one is the BEST answer!

Hello,

Did you try to follow this example: http://documentation.bonitasoft.com/web-rest-api-examples

The last one in the bottom of the page called "Start a case with variables" could be the one you're looking for.

Regards

Lionel

1
0
-1

Lionel, thanks a lot. Resolved.

Regards.

Notifications