responseHandler.waitTillDone(3000);
refresh();
}
public void complete() {
TaskClient client = getTaskClient();
if (client == null) {
return;
}
String userId = getUserId();
if (userId == null) {
return;
}
TaskSummary taskSummary = getSelectedTask();
if (taskSummary == null) {
return;
}
BlockingTaskOperationResponseHandler responseHandler = new BlockingTaskOperationResponseHandler();
client.complete(taskSummary.getId(), userId, null, responseHandler);
responseHandler.waitTillDone(3000);
refresh();
}