[jboss-user] [jBPM] - CommentId always remains 0(Zero)

Hardik Dave do-not-reply at jboss.com
Tue Mar 13 09:54:53 EDT 2012


Hardik Dave [https://community.jboss.org/people/hadik] created the discussion

"CommentId always remains 0(Zero)"

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

--------------------------------------------------------------
Task task = taskService.getTask(taskId);
TaskData data = task.getTaskData();
List<Comment> comments = data.getComments();

for(Comment comment:comments){
     System.out.println("Comment Id:"+comment.getId());
     System.out.println("Commented by:"+comment.getAddedBy());
     System.out.println("Commented at:"+comment.getAddedAt());
     System.out.println("Comment:"+comment.getText());
}


During my testing of the code above I found that I always find the commentId=0(Zero). All other fields I get properly. Is it a bug?

Regards,
Hardik Dave
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120313/30e13689/attachment.html 


More information about the jboss-user mailing list