}
}
@Override
public void updateTask(Task task) throws WorkflowException {
Task oldTask = getTaskForId(task.getTaskId());
try {
persistence.update(oldTask, task);
updateInRunningWorkflow(oldTask, task);
LOGGER.info("updated task {}", task.getTaskId());
} catch (PersistenceException e) {