Skip to content

Commit

Permalink
WorkflowInstanceDao.queryWorkflowInstances should filter result by ex…
Browse files Browse the repository at this point in the history
…ecutor group
  • Loading branch information
Edvard Fonsell committed May 2, 2016
1 parent cada74d commit cd98495
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -607,9 +607,9 @@ public List<WorkflowInstance> queryWorkflowInstances(QueryWorkflowInstances quer
conditions.add("w.external_id = :external_id");
params.addValue("external_id", query.externalId);
}
if (!isEmpty(conditions)) {
sql += " where " + collectionToDelimitedString(conditions, " and ");
}
conditions.add("w.executor_group = :executor_group");
params.addValue("executor_group", executorInfo.getExecutorGroup());
sql += " where " + collectionToDelimitedString(conditions, " and ");
sql = sqlVariants.limit(sql, ":limit");
params.addValue("limit", getMaxResults(query.maxResults));
List<WorkflowInstance> ret = namedJdbc.query(sql, params, new WorkflowInstanceRowMapper());
Expand Down

0 comments on commit cd98495

Please sign in to comment.