IBM FileNet P8, Version 5.2.1            

Creating a Tag Object

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

Java Example

CmAbstractPersistable tag = Factory.CmAbstractPersistable.createInstance(os,"ClbTag");
tag.getProperties().putValue("ClbTagValue","LoanTemplate");
tag.getProperties().putObjectValue("ClbTaggedDocument",documentObj);
tag.save(RefreshMode.REFRESH);

C# Example

ICmAbstractPersistable tag = Factory.CmAbstractPersistable.CreateInstance(os,"ClbTag");
tag.Properties["ClbTagValue"]="LoanTemplate";
tag.Properties["ClbTaggedDocument"]=documentObj;
tag.Save(RefreshMode.REFRESH);


Last updated: October 2015
socialCollab_tags_snip1.htm

© Copyright IBM Corporation 2015.