About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Technical Blog Post
Abstract
JavaScript example of changing a document class using bulk processing with Administration Console for Content Engine (ACCE)
Body
In the Administration Console for Content Engine (ACCE) you can apply JavaScript bulk actions to the search results of an object store query. This sample shows how to change a document's existing class to the desired one using the Content Platform Engine Java API and Java class libraries.
Note: Use the symbolic name rather than the display name. You can use this as the base for making other modifications also. I am using the "TestClass" document class in the below example.
importClass(Packages.com.filenet.api.constants.RefreshMode);
function OnCustomProcess (CEObject)
{
CEObject.changeClass("TestClass");
CEObject.save(RefreshMode.REFRESH);
}
The follow two screen-shots illustrate where to apply the JavaScript in Administration Console Content Engine;
2. Next enable Run script
The following IBM technote has additional JavaScript examples /support/pages/node/595863
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSNVNV","label":"FileNet Content Manager"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
UID
ibm11280506