Getting form variables in history

I’m looking thru the history API, is there a way to get form variables that were set?

Some tasks are marked with a true/false outcome and this is passed into the task when completed, and when I create a report I need to create red dots.

I have task ids, and tried queries with /variable-instance/outcome and got a 500.

Maybe I can save this small piece of information somewhere else on the task?

@lenny_h this api would be useful to get form variables.

https://docs.camunda.org/manual/7.11/reference/rest/task/get-form-variables/

I get null with that call for historical tasks. I could see attachments though.

can you provide the rest api & request params. Also the json request body for the api.

This UUID was taken out of my history for the process instance.(that is what the question was about)

In the worst case I could encode something into the attachment metadata, but it would be nice to see the variables in history.

Hi,

I also want to see the values of a process variable of a completed USER TASK.
I look on the web interface of H2 DB (my engine saves data there).

I query the ACT_HI_TASKINST table and I find my task.
But from there how I can find the related variables?

I can query the ACT_HI_VARINST but what should be the task filter?
Also, are the values in that table or just general info of the variable?

Thx

1 Like