how to use SearchQueryBuilder criterion with "not"?
Hi,
how do I use a "not", or something like that, in the criterion of a query?
If I want all the process intances where the active user is the logged user I can do something like this:
query.criterion(ProcessInstanceIndex.ACTIVE_USER).equalsTo(loggedUser)
But if I want the opposite? the instances where the active user is NOT the logged user?
Thanks in advance,
jCor
No answers yet.
Comments
Have you tried
hi rafael.vianna,
your example returns the following error in log:
Possible solutions: equalsTo(java.lang.String)
and in the javadocs I can't see that method, at least in bonita 5.9, which is the one I'm using,
Does that work for you?
thanks for your input,
jCor
Hi,
My bad on this try. I should know that wouldn't work for you.
However I've found that: http://docs.oracle.com/javase/tutorial/java/IandI/objectclass.html
Maybe it can help.
[ ]'s