01-25-2016 02:38 PM
protected List<Task> findUnassignedTasks(TASK taskKey, VARIABLE processVariable, int page, int size) {
int offset = page * size;
return buildBaseTaskQuery().
processVariableValueEquals(processVariable.getKey(), processVariable.getValue()).
includeProcessVariables().
taskUnassigned().
taskDefinitionKey(taskKey.getKey()).
listPage(offset, size);
}
//<TASK extends TaskKey, VARIABLE extends ProcessVariable>
protected List<Task> findUnassignedTasks(TASK taskKey, VARIABLE[] processVariables, int page, int size) {
int offset = page * size;
TaskQuery taskQuery = buildBaseTaskQuery().or();
for (int i = 0; i < processVariables.length; i++) {
taskQuery.processVariableValueEquals(processVariables.getKey(), processVariables.getValue());
}
taskQuery.endOr();
return taskQuery.
includeProcessVariables().
taskUnassigned().
taskDefinitionKey(taskKey.getKey()).
listPage(offset, size);
}
01-26-2016 04:44 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.