Start of changeIBM FileNet P8, Version 5.2.1            

Example: Bulk action to promote documents

This JavaScript example demotes the major version of the document and then promotes a minor version.

Query example

SELECT TOP 5 This FROM Document

Script example

importClass(Packages.com.filenet.api.constants.RefreshMode);
function OnCustomProcess (CEObject)
{
   CEObject.demoteVersion();
   CEObject.save(RefreshMode.REFRESH);
   CEObject.promoteVersion();
   CEObject.save(RefreshMode.REFRESH);
}
            


Last updated: March 2016
p8pcc440.htm

© Copyright IBM Corporation 2016.
End of change