-
1. Re: Adding comments to an execution?
rzuasti Mar 11, 2010 12:50 PM (in response to hongvo)I'm facing the exact same problem, would love an answer -
2. Re: Adding comments to an execution?
rmoskal Mar 12, 2010 6:31 PM (in response to rzuasti)I've been creating a task for holding process comments/discussions. I store a reference to it on a process variable.Kludgy, but it works.
The user id is picked up from the jbpm context when there is some authenticated user. I'm not sure exactly where it is picked up and it would be nice to be able to set it manually.
regards,
Robert Moskal
Brooklyn, USA -
3. Re: Adding comments to an execution?
rzuasti Mar 17, 2010 10:35 AM (in response to rmoskal)I took a dirtier approach,something like:
List<HistoryTask> executionTasks = pe.getHistoryService().createHistoryTaskQuery().executionId(task.getExecutionId()).orderAsc(TaskQuery.PROPERTY_CREATEDATE).list();
for (HistoryTask executionTask : executionTasks){
List<HistoryComment> comments = taskService.getTaskComments(executionTask.getId());
//... merge all comments in one big list
}
ie listing all comments of all the tasks in the execution ID, I hope it doesn't hit my systems performance too hard
-
4. Re: Adding comments to an execution?
hongvo Apr 13, 2010 3:04 AM (in response to rzuasti)Thanks for all the replies!
We ended up using our own custom object Comment with all the fields we needed (because we also had to keep track of who added the comment). Then we stored the whole object in a list of comments as a variable. It worked well for us