snippets/inter-process-communication-ws/src/main/java/org/camunda/demo/interpocesscommunication/ws/ProcessInvocation.java
public List<String> getTaskList(List<String> correlationIds) {
    ArrayList<String> tasks = new ArrayList<String>();
    // Better than the loop would be to introduce an own query doing this in one SQL, see
    // https://app.camunda.com/confluence/display/foxUserGuide/Performance+Tuning+with+custom+Queries
    for (String id : correlationIds) {      
      List<Task> tasksForCorrelationId = taskService.createTaskQuery().processVariableValueEquals(CALLBACK_CORRELATION_ID, id).list();
      for (Task task : tasksForCorrelationId) {        
        tasks.add(task.getName());
                //new TaskDto(task.getName(), task.getDescription(), task.getAssignee(), task.getId(), task.getProcessInstanceId(), task.getExecutionId(), task.getProcessDefinitionId()));
      }
    }
    return tasks;
  }
public List<String> getTaskList(List<String> correlationIds) {
    ArrayList<String> tasks = new ArrayList<String>();
    // Better than the loop would be to introduce an own query doing this in one SQL, see
    // https://app.camunda.com/confluence/display/foxUserGuide/Performance+Tuning+with+custom+Queries
    for (String id : correlationIds) {      
      List<Task> tasksForCorrelationId = taskService.createTaskQuery().processVariableValueEquals(CALLBACK_CORRELATION_ID, id).list();
      for (Task task : tasksForCorrelationId) {        
        tasks.add(task.getName());
                //new TaskDto(task.getName(), task.getDescription(), task.getAssignee(), task.getId(), task.getProcessInstanceId(), task.getExecutionId(), task.getProcessDefinitionId()));
      }
    }
    return tasks;
  }
TaskDto