IBM FileNet ACCE Script to set Retention period on CE objects
importClass(Packages.com.filenet.api.property.Properties);
importClass(Packages.com.filenet.api.constants.RefreshMode);
function OnCustomProcess (CEObject)
{
CEObject.refresh();
CEObject.set_CmRetentionDate(new Date(new Date().getTime()-4));
CEObject.save(RefreshMode.REFRESH);
}
No comments:
Post a Comment