I posted this as an add-on to my attributes topic but this should probably be a new topic since they aren't quite related...
I loop through my ApplicationData list and correctly identify the CommentData. But there isn't anything there! I have checked the workflow and the comments are in there. All other data (attachments and attributes) are correct. Could someone please try to verify if this is a bug or I am doing something wrong?! If no one posts here, I guess I will have to file this as a bug with support. Here is my code...
WorkItemResult result = wfSvc.listWorkItems(null);
List<WorkItem> items = result.getWorkItems();
for (WorkItem item : items) {
// Attached data
List<ApplicationData> dataList =
wfSvc.getWorkItemData(item.getProcessID(), item.getSubProcessID(), item.getID()); for (ApplicationData data : dataList) {
if (data instanceof CommentData) {
CommentData cData = (CommentData) data;
System.out.println("Comment: [" + cData.getComment() + "]");
}
}
}