How to get Process/Task Variable History in Camunda 8 Self-Managed?

Hello All,

How to get Process/Task Variable History in Camunda 8 Self-Managed?

For example, I have the process variable called “discount” and the value keeps changes frequently.

Current Value:
discount = 11.50%

Previous Values:
discount = 10.00%
discount = 12.50%
discount = 15.00%
discount = 20.00%

So we want to query and get the historical changes of the “discount” variable. I didn’t find an Tasklist api that would return the historical variable data. Let me know how to get the variable history for task/process variables.

HI @aravindhrs !

Can you please provide details on what triggers the variable change?
Do you want to track when it changes during one user task form?
Or when it changes through different tasks in your process?

Best,
Christian

Hi @christian-konrad , We have a user task with external forms which data are submitted via rest api (task completion api) variables. The user task which we have is being executed in loop based on condition. Given that scenario, we re-use some of the variables to store the latest values. From that, we need to extract the history of the value of such variable.

This matches your question: Do you want to track when it changes during one user task form? In addition, including what was changed and by who, because it’s an user task.

@christian-konrad Any updates on this issue?

Hi @aravindhrs,

Currently, Camunda 8 does not support tracking of historical changes for process variables.
However, it’s in our roadmap for future releases.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.