Retrieve the history of variables

Hello everyone,

It’s my first example with camunda, i created the below flow

4

In the first step i start the flow with this API ‘http://localhost:8282/engine-rest/process-definition/Process_bank_data:4:df63aeb9-2c3a-11ec-a89d-0242ac11000a/start

and to complete the first step i used this API ‘http://localhost:8282/engine-rest/task/f5da4333-2c3a-11ec-a89d-0242ac11000a/complete’ with this body

{
“variables”:{
“externalId”:{
“value”:“7d4c1923-f912-4dad-992c-9da979dff91e”
},
“accountHolder”:{
“value”:“test”
}
}

to complete the second step i use the same API just i change the task id with this body

{
“variables”:{
“externalId”:{
“value”:“7d4c1923-f912-4dad-992c-9da979dff91e”
},
“accountHolder”:{
“value”:“test1”
}
}

now in the third step how can i get the variables of first step and second step ?

Hello @Aymen_Kanzari:
Via Rest API you would use one of these method described in our docs here: Variable Instance | docs.camunda.org

Best, McAlm