Filer task list data with variables

Hi There,

I found that we can create a filter with different variables which shown in the tasks list. How can I get that filter list with REST or Java API which includes the variables defined in the filter?

I have tried the /filter/{id}/list API but it returns only the task related data. Any process or task variables not included in the response.

Please help me to figure out this.

Thanks in advance.