JBoss Community

CommentId always remains 0(Zero)

created by Hardik Dave in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community