public void setPriority(String containerId, Number taskId, String priorityPayload, String marshallingType) { containerId = context.getContainerId(containerId, new ByTaskIdContainerLocator(taskId.longValue())); logger.debug("About to unmarshal task priority from payload: '{}'", priorityPayload); Integer priority = marshallerHelper.unmarshal(containerId, priorityPayload, marshallingType, Integer.class); logger.debug("About to set priority for a task with id '{}' with value '{}'", taskId, priority); userTaskService.setPriority(containerId, taskId.longValue(), priority); }
@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); } }