JBPM-4145 TaskQueryService methods for dynamic querying (make it easier for rest service) (cherry picked from commit a63d997ead6cb5e42b9c43e9e018ad745a4eaee4)