cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass processDefinitionKey in REST URL

vrdhn
Champ in-the-making
Champ in-the-making
I want to start a process and I know this is how I start using REST service:
http://localhost:8989/activiti-rest/service/runtime/process-instances
Method: POST
{"processDefinitionKey":"PurchaseRequestProcess",
"variables":[
  {"name":"formId","value":"1"},
  {"name":"requesterId","value":"kermit"}
]}
Unfortunately, I develop my application using Oracle Apex. So by default, it only provides the developer to fill variable and there is no place to pass processDefinitionKey data.
Is there anyway to pass the value of processDefinitionKey in the URL itself?
Please I am so confuse and I really need help in this. Thank you.
4 REPLIES 4

vrdhn
Champ in-the-making
Champ in-the-making

jbarrez
Star Contributor
Star Contributor
No, that's not possible.
Not sure if I'm following … this is a very typical approach for doing an HTTP POST (the params are in the body)

vrdhn
Champ in-the-making
Champ in-the-making
If that's not possible, then is there any way to replace the value of formId and requesterId?
I want the value of formId and requesterId are flexible..

jbarrez
Star Contributor
Star Contributor
um … yes. It's in the body of the json you have, it's whatever you want.
Don't think we're on the same page here …