public void setDescription(String containerId, Number taskId, String descriptionPayload, String marshallingType) { containerId = context.getContainerId(containerId, new ByTaskIdContainerLocator(taskId.longValue())); logger.debug("About to unmarshal task description from payload: '{}'", descriptionPayload); String description = marshallerHelper.unmarshal(containerId, descriptionPayload, marshallingType, String.class); logger.debug("About to set name for a task with id '{}' with value '{}'", taskId, description); userTaskService.setDescription(containerId, taskId.longValue(), description); }
@Override public void updateTask(long taskId, int priority, List<String> taskDescription, Date dueDate) { taskService.setPriority(taskId, priority); if(taskDescription != null){ taskService.setDescription(taskId, taskDescription.get(0)); } if(dueDate != null){ taskService.setExpirationDate(taskId, dueDate); } }