示例#1
0
  public void handledManuallyTask() {
    task.setStatus(TaskStatus.HANDLED_MANUALLY);
    taskManager.updateTask(task);

    facesMessages.add(
        "Successfully set task status as 'handled manually' for task Id: #0", task.getTaskId());
  }
示例#2
0
  public void cancelTask() {
    task.setStatus(TaskStatus.CANCELLED);
    taskManager.updateTask(task);

    facesMessages.add("Successfully cancelled task Id: #0", task.getTaskId());
  }