cancel
Showing results for 
Search instead for 
Did you mean: 

filtering tasks by process variable ?

tomcheng76
Champ in-the-making
Champ in-the-making
I know i can getVariable by providing executionId and the variable name.

But can i filter the List<task> by process variable when i just started the taskQuery?

It should be a common practice since filtering by Assignee or something like that is not enough.

If It is not supported, is there any solutions by extending the createTaskQuery ?

perhaps give me a direction to work with is enough.

Thanks for your opinion.
2 REPLIES 2

tomcheng76
Champ in-the-making
Champ in-the-making
I found taskVariableValueEquals(String variableName, Object variableValue) , that may help, but is there a "OR" search ?

tomcheng76
Champ in-the-making
Champ in-the-making
Okay, i solved by using the hibernate to read the activiti database…

but it sacrifice the query function of the api…anyway, it seems faster…