suppose I start a task with
{
“variables”: {
"amount": {
"value":555,
"type":"long"
},
"class": {
"value":"3000",
"type":"string"
}
}
}
Now I query with: http://localhost:8080/engine-rest/task?caseInstanceVariables=class_eq_3000
Will this return the Tasks associated with the value? I am getting an empty set.
Hey @lenny_h,
caseInstanceVariables
are related to CMMN. You want probably to query for taskVariables
.
KR
(API reference: https://docs.camunda.org/manual/7.11/reference/rest/task/get-query/#query-parameters)
lenny_h
3
taskvariables
did not work
http://localhost:8080/engine-rest/task?processVariables=serial_eq_3000
worked. ( I may have serial in some form fields)
But I tried another variable (amount) that is a long, and got no result. Does it only work for strings?

As described in the docs, for the GET Request, Values are always treated as String
objects on server side.
You can use the POST equivalent instead: https://docs.camunda.org/manual/latest/reference/rest/task/post-query/