Help with REST API Bonita studio 7.1


Help please.
I'm working on bonita studio and bonita server, and i''m trying to create a web application with a workflow.
My problem is that i'm using the REST API service and i'm using the method : Update activity variables for bonita 7.1

More specific, the first that i do, its get all the variables that exist in my activity:
and i have the next response:
"description": ""
"name": "nextStep"
"value": "false"
"case_id": "19"
"type": "java.lang.Boolean"

then, i want to update the value of the nextStep variable and change his value to true, so i use the update activity variables method as specified in the following direction:

so, i use this method:
and i use this request payload:
all this using PUT.

The problem i have now is that doing the aforementioned, and i have the next answer: 404 Not Found.
Please somebody help my with this case.

p.s. sorry for my bad english.

1 answer

This one is the BEST answer!


According to documentation you need to use PUT method on caseVariable resource.

Doing the following call work for me:
URL: http://localhost:8080/bonita/API/bpm/caseVariable/8001/nextStep
Payload: {"type":"java.lang.Boolean","value":"true"}


Submitted by fflores_2 on Fri, 03/11/2016 - 14:49

it's works, thanks a lot.