AnsweredAssumed Answered

Possible wrong documentation for a REST API?

Question asked by ssun on May 7, 2014
Latest reply on May 7, 2014 by ssun
Hi,

I was trying to use the REST API to start a process with some variables. I found the document here http://activiti.org/userguide/index.html#N13CE6 not working.
Specifically when I post something like

{
   "processDefinitionKey":"oneTaskProcess",
   "businessKey":"myBusinessKey",
   "variables": [
      {
        "name":"myVar",
        "value":"This is a variable",
      },
     
      …
   ]
}

The variables will not be populated. What works is:

{
   "processDefinitionKey":"oneTaskProcess",
   "businessKey":"myBusinessKey",
   "tenantId": "tenant1",
   "myVar": "This is a variable"
      …
   ]
}

Is this correct? I am on 5.14 but I cannot find the 5.14 documentation any more so it is possible that this is change since 5.15

Thank you very much!

–Gordon

Outcomes