Discussion:
[jboss-user] [jBPM] - How to add comment to Task
Adedayo Dayo
2013-05-02 21:32:41 UTC
Permalink
Adedayo Dayo [https://community.jboss.org/people/mydevbox] created the discussion

"How to add comment to Task"

To view the discussion, visit: https://community.jboss.org/message/811325#811325

--------------------------------------------------------------
Hi All,

Can anyone point me to a sample code that allows me to add comments to human task? I have tried the option of adding  parameters.put("comment", "Nice comment"); as an entry of the map passed to ContentData (e.g
ContentData contentData = ContentMarshallerHelper.marshal(parameters,      null); ) before completing a task, but it still doesnt work. I mean task_comment table does not get populated. Any ideas on how to populate this table with data will be appreciated. Thanks
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/811325#811325]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-05-13 05:59:35 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: How to add comment to Task"

To view the discussion, visit: https://community.jboss.org/message/817319#817319

--------------------------------------------------------------
you can use API method addComment to achieve what you described, http://docs.jboss.org/jbpm/v5.4/javadocs/org/jbpm/task/service/TaskClient.html here you can find API on TaskClient to do so.

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/817319#817319]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Adedayo Koko
2013-05-29 21:10:59 UTC
Permalink
Adedayo Koko [https://community.jboss.org/people/mydevbox] created the discussion

"Re: How to add comment to Task"

To view the discussion, visit: https://community.jboss.org/message/820220#820220

--------------------------------------------------------------
Tanx Maciej.... It was embarrassingly simple.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/820220#820220]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...