List<String> statusStrList = getStringListParamAsList(allowedQueryParams[4], false, params, "query");
List<Status> statuses = convertStringListToStatusList(statusStrList);
int[] pageInfo = getPageNumAndPageSize(params, oper);
int maxResults = getMaxNumResultsNeeded(pageInfo);
GetTasksByVariousFieldsCommand queryCmd = new GetTasksByVariousFieldsCommand(workItemIds, taskIds, procInstIds, busAdmins,
potOwners, taskOwners, statuses, language, union, maxResults);
queryCmd.setUserId(identityProvider.getName());
List<TaskSummary> results = doRestTaskOperationWithTaskId((Long) null, queryCmd);
logger.debug("{} results found.", results.size());
JaxbTaskSummaryListResponse resultList = paginateAndCreateResult(pageInfo, results, new JaxbTaskSummaryListResponse());