criteria

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,

Notifications