Web API new case error

Hi everyone,
like said by Sean I’m trying to use Web Api to connect to Bonita BPM Engine. I’m trying to start a process by creating (please correct me if I’m doing wrong) a new case. I’m using the sample process “create supplier”, using postman chrome plugin as a client for Web API.

This that follow the Json used for the request:

{
"processDefinitionId":7718643308768395187,
"variables":[{"name":"name", "value":"test" }, { "name":"description", "value":"test_description"}]
}

The response payload is a “500 server error” with the following exception:

"Data definition name doesn't exists for process 7718643308768395187"

I’ve checked the processId by checking ProcessInformation API and Contract API, so I’m quite sure it’s the right one. Not sending any variable, or not sending “name” and/or “description” variable produces the following exception:

USERNAME=walter.bates | org.bonitasoft.engine.bpm.contract.ContractViolationException: Error while validating expected inputs: [Expected input [name] is missing, Expected input [description] is missing]

What am I doing wrong ?

Thanks to everyone who will answer me.

Hello,

I have the exact same issue and it’s still not working in version 7.2.2.

Someone could help, please?

Hi, I have the same problem and it doesn’t work, bonita 7.2.2

Someoen could help me, please?

Use this inseade
http://localhost:8080/bonita/API/bpm/process/6813XXXXXXXXXX/instantiation

and in the body provide the data
{
“yourDataObject”:{
“FirstName”:“James”,“LastName”:“Walter”,“TotalAnnualIncome” : 50000, “TotalAnnualExpenses” : 2000
}
}