I am new to Camunda/zeebe BPM. I am using the send-email workflow provided by Zeebe to test and play around. I am able to start the process from spring boot application and able to get the instance id information. I want to pass the message content which is defined in the user task using a RestAPI call to my custom spring boot application. It would be great if anyone can point in the right direction on the following
Also can you point some details on how to do with Camunda server instead of Zeebe.
GET http://localhost:8080/engine-rest/task?processInstanceId=100001920009
You have to list the tasks with the api in point 2 then claim the task using task id which will be in the response of point 2
POST http://localhost:8080/engine-rest/task/7676a188-e0f4-11eb-bd9c-22a3117ba565/claim
Then can complete the task with
POST http://localhost:8080/engine-rest/task/7676a188-e0f4-11eb-bd9c-22a3117ba565/complete
if variables are to be passed use the below template as the body
{
"variables": {
"aVariable": {
"value": "aStringValue"
},
"anotherVariable": {
"value": 42
},
"aThirdVariable": {
"value": true
}
},
"withVariablesInReturn": true
}