TaskQuery processVariableValueLike as same behavior as processVariableValueEquals?

Hi,
In my project (Spring-Boot: (v2.1.2.RELEASE), Camunda BPM: (v7.10.0), Camunda BPM Spring Boot Starter: (v3.2.0)
It seems that processVariableValueLike as same behavior as processVariableValueEquals.

code : taskQuery.processVariableValueLike(CamundaVariable.MODEL_LABEL_EN, requestFilter.modelID);

In that exemple case CamundaVariable.MODEL_LABEL_EN = “Petrol-powered cement mixer”
if requestFilter.modelID = “Petrol-powered cement mixer” i have the task i want cause it match perfectly in the string
However i’m suppose that i can just give “Petrol” or “cement mixer” but if i do so i get anything.

Does i miss something ? Or the two method have the same behavior ?

Thanks

Hi,

since this is a LIKE operation, you have to put something like %cement% to find what you are looking for. The % is interpreted as a ‘any other character any number of times’.

Hope that helps.

Best,
Tobias

1 Like

Hi thanks for the fast reply !
Yes that was the solution ! Thanks