Hi,
I write a method to retrieve case variables. it works pretty well except when I complete the task.
- I create a simpe process with an human task
- via rest api I start the task
- if I call “/API/bpm/caseVariable?p=0&c=10&f=case_id%3d”+case_id I get all the variables with ‘null’ values
- via bonita portal I complete the task setting values to variables (mapped with form inputs)
- if I call “/API/bpm/caseVariable?p=0&c=10&f=case_id%3d”+case_id I get:
HTTP STATUS: 500 {“exception”:“class org.bonitasoft.web.toolkit.client.common.exception.api.APIException”,“message”:“Error when getting case variables”,“cause”:{“exception”:“class org.bonitasoft.engine.exception.RetrieveException”,“message”:“USERNAME=walter.bates | org.bonitasoft.engine.core.process.instance.api.exceptions.SProcessInstanceNotFoundException: Process instance with id \u003c5008\u003e not found”},“api”:“bpm”,“resource”:“caseVariable”}
what do I do wrong?
thanks in advice
Claudio