} else {
throw new ActivitiException("Tasks must be filtered with 'assignee', 'owner', 'involved', 'candidate' or 'candidate-group'");
}
if (strPriority != null) {
taskQuery.taskPriority(RequestUtil.parseToInteger(strPriority));
} else if (strMinPriority != null) {
taskQuery.taskMinPriority(RequestUtil.parseToInteger(strMinPriority));
} else if (strMaxPriority != null) {
taskQuery.taskMaxPriority(RequestUtil.parseToInteger(strMaxPriority));
}