Start of changeIBM FileNet P8, Version 5.2.1            

Example: Bulk action to fetch document property values

This JavaScript example fetches the document properties and prints the information. This information is logged in an application log file.

Query example

SELECT TOP 5 This FROM Document

Script example

importClass(java.lang.System);
importClass(Packages.com.filenet.api.property.Properties);
 
function OnCustomProcess (CEObject)
{
   System.out.println("Executing Fetch Properties script");
   CEObject.refresh();
   var props = CEObject.getProperties();
 
   System.out.println("ClassName................... " + CEObject.getClassName());
   System.out.println("Has DocumentTitle property.. " + props.isPropertyPresent("DocumentTitle")); 
   System.out.println("Propertites size............ " + props.size()); 
}
            


Last updated: October 2015
p8pcc442.htm

© Copyright IBM Corporation 2015.
End of change