cancel
Showing results for 
Search instead for 
Did you mean: 

TaskQuery 'taskVariableValueNotEquals'.

andreasa
Champ in-the-making
Champ in-the-making
I want to query tasks where a task variable is null or not set. Is this possible somehow?
Or would I have to do the filtering on the entire resultset?

Maybe it's neater to always set the variable and have it's value default be 0/null?
1 REPLY 1

mitziuro
Champ in-the-making
Champ in-the-making
Look at
org/activiti/db/mapping/entity/Task.xml
https://bitbucket.org/camunda/fox-engine/src/33de18b12a0f/modules/activiti-engine/src/main/resources...

to see exactly what's going on behind a TaskService call.
You can use your variable flag idea or modify the mybatis mapping(but on your own risk).

This is not the official staff's answer, it's just my advice.