Cammunda 8.8 REST API problem with UserTask variable filter

Hi all!

I’m trying to send an HTTP request to find a UserTask, but I’m getting a 400 error from the API. Using this documentation, I see that processInstanceVariables is used for filtering. My UserTask is in a process instance. The instance contains a variable called “createdFrom”: “BlazorUI.” See screenshot:

But i cant find my UserTask (0 items)

User “localVariables”:

If i delete filter i find many items


Could you please tell me what I’m doing wrong? Why isn’t it finding the UserTasks it should have? The screenshot shows that one should have been found. If I’m doing something wrong, how should I adjust the query so it finds the right UserTask?
Thanks in advance!

Search user tasks | Camunda 8 Docs - from documentation

FWIW Im having a similar problem. It is not clear which, if any, of the attributes in the request body are mandatory…

I dont get an error, just an empty response set when Im expecting at least one task…

Regards

Rob

Solution - add to string value variables ““ additional
quotation marks and this working for me :smiley:

2 Likes

Thankyou, that was the solution

Regards

Rob

@ilya.sector.1 and @Webcyberrob - can you confirm that the value returned from the request also contains the quotes? In other words, that the value stored in your process is "value" and not just value?

Hi Nathan,

The process instance was started with a json payload comprising strings, eg

“applicationId” : “CA000001”

To search for user tasks associated with this string variable, I have to add the escaped string into the query…

Regards

Rob

1 Like

Yes, see my previous screen (see body request string)

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.