code: private void fetchTasks() {
          synchronized (_userTasks) {
              _userTasks.clear();
              _userTickets.clear();
              List<TaskSummary> tasks = _taskService.getTasksAssignedAsPotentialOwner(_userId, EN_UK);
              for (TaskSummary task : tasks) {
                  _userTasks.add(task);
                  Map<String, Object> params = _taskService.getTaskContent(task.getId());
                  Ticket ticket = (Ticket) params.get(TICKET);
                  _userTickets.put(task.getProcessInstanceId(), ticket);
              }
          }
      }
docs: Fetch tasks.