cancel
Showing results for 
Search instead for 
Did you mean: 

Possible wrong documentation for a REST API?

ssun
Champ on-the-rise
Champ on-the-rise
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
1 REPLY 1

ssun
Champ on-the-rise
Champ on-the-rise
Ignore this post. I was posting to wrong API endpoint. I was posting to service/process-instances instead of runtime/process-instances