[jboss-user] [jBPM] New message: "Re: JBPM 4.3 Why is taskService.addTaskComment() only allowed for completed tasks?"

Joram Barrez do-not-reply at jboss.com
Tue Feb 2 17:09:28 EST 2010


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/523799#523799

Author  : Joram Barrez
Profile : http://community.jboss.org/people/jbarrez

Message:
--------------------------------------------------------------
The logic that happens in the command is correct.
A history task is created together with the active task. The comment is attached to the historytask, to save a copy when the runtime task is deleted. If you use the API, there is no difference.
 
According to the test org.jbpm.test.task.TaskCommentsTest following the following is simply possible:
 
  Task task = taskService.newTask();
   String taskId = taskService.saveTask(task);
   taskService.addTaskComment(taskId, "i'll clean up the mess");
 
So I'm guessing your error must be elsewhere.

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/523799#523799




More information about the jboss-user mailing list