[jboss-dev-forums] [jBPM Development] - How to get all comments of a process Instance
chris does
do-not-reply at jboss.com
Wed Nov 10 09:57:57 EST 2010
chris does [http://community.jboss.org/people/cmshizzl] created the discussion
"How to get all comments of a process Instance"
To view the discussion, visit: http://community.jboss.org/message/570513#570513
--------------------------------------------------------------
Hi everybody,
is it possible to get all the comments of a process instance. (That means every comment of a task within a process instance).
I just found the history Service but that didn't work.
List<HistoryDetail> history = engine.getHistoryService()
.createHistoryDetailQuery()
.processInstanceId(processInstanceID).comments()
.orderDesc(HistoryDetailQuery.PROPERTY_TIME).list();
I think another solution would be to iterate over all tasks of a process instance to get the comments.
Is there a better solution for this problem?
Best Regards,
Chris
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/570513#570513]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101110/3c6f34d6/attachment.html
More information about the jboss-dev-forums
mailing list