Hi there,
I am trying to call camunda start process instance rest api from my java class -
{{rest_url}}/process-definition/key/{key}/start
now this endpoint needs object in the structure as below -
{
“variables”: {
“age” : {
“value” : 25,
“type”: “Integer”
},
“carManufacturer” : {
“value” : “VW”,
“type”: “String”
},
“carType” : {
“value” : “BMW”,
“type”: “String”
}
},
“businessKey” : “myBusinessKey2”
}
now I have a map of values that I want to covert in the input structure as required by rest api call, here’s my map -
{
“businessKey” : “123”,
“caseStatus”: “Dummy”
}
Please advise how how this can be done or if there’s a better way to create the payload for camunda rest api call ( start process instance and others).
Please note: we want to migrate this application to camunda 8 at a later point in time, so want to keep boilerplate code to minimal possible.
Thanks