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()); }
public void cancelTask() { task.setStatus(TaskStatus.CANCELLED); taskManager.updateTask(task); facesMessages.add("Successfully cancelled task Id: #0", task.getTaskId()); }