IBM FileNet P8, Version 5.2.1            

Creating a Comment Object

The following Java™ and C# examples create a ClbDocumentComment object. The tag is applied to a passed-in Document object.

Java Example

CmAbstractPersistable comment = Factory.CmAbstractPersistable.createInstance(os,"ClbDocumentComment");
String commentText="Modified section 3.1.6";
comment.getProperties().putValue("ClbCommentText",commentText);
comment.getProperties().putObjectValue("ClbCommentedDocument",documentObj);
comment.save(RefreshMode.REFRESH);

C# Example

ICmAbstractPersistable comment = Factory.CmAbstractPersistable.CreateInstance(os, "ClbDocumentComment");
String commentText = "Modified section 3.1.6";
comment.Properties["ClbCommentText"] = commentText;
comment.Properties["ClbCommentedDocument"] = documentObj;
comment.Save(RefreshMode.REFRESH);


Last updated: October 2015
socialCollab_comments_snip1.htm

© Copyright IBM Corporation 2015.