Rest API and Variable Instances with integer value

Hi, all!
I’m trying to get Variable Instances using Camunda’s API. Process has the integer variable profileId. I want to get all variables “profileId” with value 6. According example in this doc (Get Variable Instances | docs.camunda.org) I made a request - http://localhost:8080/engine-rest/engine/default/variable-instance?variableValues=profileId_eq_6. Result is empty. I’ve try request for string variable and had result as I expect. What I do wrong? Or with integer variables this request is not work? But example in docs show situation with integer variable…

Also, can someone show me where I can find all methods for objects in listeners script, for example: task, execution etc.?

Hey Sergiu!
The GET Variables filter by variable value works only with string variables, as it is said in the documentation link you provided:

Note: Values are always treated as String objects on server side.

To filter by integer (and other types) variables you can use the get list by POST:

Thank you! That’s what I need! :slightly_smiling_face: I was confused by example in get method.