Query Task Variables with OR/AND

I’ve searched the topics but don’t see an answer for this Task Query or Filter question. It’s Possible to build a query using java api for the following query:

(Variable1 = 'A' AND Variable1 = 'B' or Variable1 = 'C')
OR
(Variable2 = 'AA AND Variable2 = 'BB' or Variable2 = 'CC')

Hello my friend!

Does this endpoint below using “orQueries” not solve your problem?

https://docs.camunda.org/rest/camunda-bpm-platform/7.20/#tag/Task/operation/queryTasks

Hope this helps.

William Robert Alves

@WilliamR.Alves thx but I’m using java api. is it possible to build this query using java api?