Hi,
I have a form associated with a user task.
In that I have several task variables.
After completing the task,when I try to retrieve the history using Get Variable Instances | docs.camunda.org I see that all the taskId is null.
How will I be able to filter the varibales according to taskId
?
Hi @Mass_Shake,
the taskID in the variable tables is only set for task local variables. Form variables are supposed to be process variables.
Have a look at the docs for details about variable scopes: https://docs.camunda.org/manual/7.12/user-guide/process-engine/variables/#setting-variables-to-specific-scope
If you want to get the activity where the variable was set or updated, use the activityInstanceId
from this REST endpoint: https://docs.camunda.org/manual/7.12/reference/rest/history/variable-instance/get-variable-instance/.
Hope this helps, Ingo