public void selectTask(final TaskSummary summary, final Boolean close) {
   final DefaultPlaceRequest defaultPlaceRequest = new DefaultPlaceRequest("Task Details Multi");
   final PlaceStatus status = placeManager.getStatus(defaultPlaceRequest);
   boolean logOnly = false;
   if (summary.getStatus().equals("Completed") && summary.isLogOnly()) {
     logOnly = true;
   }
   if (status == PlaceStatus.CLOSE) {
     placeManager.goTo(defaultPlaceRequest);
     taskSelected.fire(
         new TaskSelectionEvent(
             selectedServerTemplate,
             summary.getDeploymentId(),
             summary.getTaskId(),
             summary.getTaskName(),
             summary.isForAdmin(),
             logOnly));
   } else if (status == PlaceStatus.OPEN && !close) {
     taskSelected.fire(
         new TaskSelectionEvent(
             selectedServerTemplate,
             summary.getDeploymentId(),
             summary.getTaskId(),
             summary.getTaskName(),
             summary.isForAdmin(),
             logOnly));
   } else if (status == PlaceStatus.OPEN && close) {
     placeManager.closePlace("Task Details Multi");
   }
 }
 public void claimTask(final TaskSummary task) {
   taskService
       .call(
           new RemoteCallback<Void>() {
             @Override
             public void callback(Void nothing) {
               view.displayNotification(constants.TaskClaimed(String.valueOf(task.getTaskId())));
               refreshGrid();
             }
           },
           new DefaultErrorCallback())
       .claimTask(selectedServerTemplate, task.getDeploymentId(), task.getTaskId());
   taskSelected.fire(
       new TaskSelectionEvent(
           selectedServerTemplate, task.getDeploymentId(), task.getTaskId(), task.getTaskName()));
 }
  public void getDomainSpecifDataForTasks(
      final int startRange,
      String filterValue,
      final List<TaskSummary> myTasksFromDataSet,
      boolean lastPageExactCount) {

    FilterSettings variablesTableSettings = view.getVariablesTableSettings(filterValue);
    variablesTableSettings.setTablePageSize(-1);
    variablesTableSettings.setServerTemplateId(selectedServerTemplate);

    dataSetQueryHelperDomainSpecific.setDataSetHandler(variablesTableSettings);
    dataSetQueryHelperDomainSpecific.setCurrentTableSettings(variablesTableSettings);
    dataSetQueryHelperDomainSpecific.setLastOrderedColumn(COLUMN_TASK_ID);
    dataSetQueryHelperDomainSpecific.setLastSortOrder(SortOrder.ASCENDING);

    List<Comparable> tasksIds = new ArrayList<Comparable>();
    for (TaskSummary task : myTasksFromDataSet) {
      tasksIds.add(task.getTaskId());
    }
    DataSetFilter filter = new DataSetFilter();
    ColumnFilter filter1 = equalsTo(COLUMN_TASK_VARIABLE_TASK_ID, tasksIds);
    filter.addFilterColumn(filter1);
    variablesTableSettings.getDataSetLookup().addOperation(filter);

    dataSetQueryHelperDomainSpecific.lookupDataSet(
        0,
        createDataSetDomainSpecificCallback(
            startRange,
            myTasksFromDataSet,
            variablesTableSettings.getDataSet(),
            lastPageExactCount));
  }