use of org.camunda.bpm.engine.rest.hal.task.HalTaskList in project camunda-bpm-platform by camunda.
the class FilterResourceImpl method convertToHalTaskList.
@SuppressWarnings("unchecked")
protected HalTaskList convertToHalTaskList(List<Task> tasks, long count) {
HalTaskList halTasks = HalTaskList.generate(tasks, count, getProcessEngine());
Map<String, List<VariableInstance>> variableInstances = getVariableInstancesForTasks(halTasks);
if (variableInstances != null) {
for (HalTask halTask : (List<HalTask>) halTasks.getEmbedded("task")) {
embedVariableValuesInHalTask(halTask, variableInstances);
}
}
return halTasks;
}
Aggregations