User development, A new message was posted in the thread "JBPM 4.3 Why is taskService.addTaskComment() only allowed for completed tasks?":
http://community.jboss.org/message/523808#523808 Author : nick bauman Profile : http://community.jboss.org/people/nick.bauman Message: -------------------------------------------------------------- Seems like Joram's post pointing out the test reveals that the task has to be saved before comments work: Task task = taskService.newTask(); String taskId = taskService.saveTask(task); taskService.addTaskComment(taskId, "i'll clean up the mess"); Arjan, your example seems to essentially have the last two lines of the test reversed: taskService.addTaskComment(command.getTaskId(), command.getRemark()); taskService.completeTask(command.getTaskId(), command.getOutcome()); (assuming completeTask does a save) -------------------------------------------------------------- To reply to this message visit the message page: http://community.jboss.org/message/523808#523808
_______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user