cancel
Showing results for 
Search instead for 
Did you mean: 

Starting a Process with Properties from REST API - 5.15.1

mahmoudnawwar
Champ in-the-making
Champ in-the-making
I have a problem in Starting Process REST API - 5.15.1
This is my Request Body

{
"processDefinitionKey":"vacationRequest",
"variables": [
{
"name":"employeeName",
"value":"kermit"
},{
"name":"numberOfDays",
"value":4
},{
"name":"startDate",
"value":"1-1-2015"
},{
"name":"vacationMotivation",
"value":"Rest"
}
]
}




and this is the error

org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'numberOfDays'
1 REPLY 1

sahusunil
Champ in-the-making
Champ in-the-making
Hi Mahmoud,
I just tried for this process definition and I was able to create the process instance using rest-api. I tried it with both options processDefinitionKey and processDefinitionId. I am also using 5.15.1 activiti-engine. Did you modify the process definition or you have used the same one which comes in bundle?

Thanks
Sunil