Hi experts,
I’m pretty new in bonita and I need to know how to create an instance of a process (a case), via REST Api.
I’m testing with the tutorial for “Travel Requests”. I think what I have to do is call: /bonita/API/bpm/case, with a payload like this:
{ “processDefinitionId”: xxxx,
“variables”: [
{“name”: “userId” , “value” : 3},
{“name”: “destination” , “value” : “JALOBRE”},
{“name”: “departureDate” , “value” : “2017-02-09”},
{“name”: “numberOfNights” , “value” : 1},
{“name”: “hotelNeeded” , “value” : true},
{“name”: “reason” , “value” : “misco”},
{“name”: “status” , “value” : “pending”},
{“name”: “refusalReason” , “value” : “” }
]
but I don’t know how to get the processDefinitionId
Any help?
Thanks,
Jose.