Search in sources :

Example 1 with HalTaskList

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;
}
Also used : HalTask(org.camunda.bpm.engine.rest.hal.task.HalTask) HalTaskList(org.camunda.bpm.engine.rest.hal.task.HalTaskList) HalTaskList(org.camunda.bpm.engine.rest.hal.task.HalTaskList)

Aggregations

HalTask (org.camunda.bpm.engine.rest.hal.task.HalTask)1 HalTaskList (org.camunda.bpm.engine.rest.hal.task.HalTaskList)1