Hi everyone.
i'm building a specific filter mechanism in my gui, that allows the user to select only some subset of processes based on a few different attributes (like start date, the value of certain process variables, and so on).
Being a filter, every filtering field can be present or not.
That said, i'm trying to find a way of combining pre made queries, like the following:
ProcessInstanceQuery q1 = getProcessInstance().createProcessInstanceQuery()… .involvedUser(user1);
ProcessInstanceQuery q1 = getProcessInstance().createProcessInstanceQuery()… .variableValueLike(var, value);
…
…
FinalQuery = q1 or q1 or … .listPage(start, number).
How can i implement the last part, i.e. the combining part?
Thanks a lot!