Promotes an unreleased minor version of this document to a released major version. This method changes the current released major version (if it exists) to a superseded major version, but does not delete any document versions (including content) from the document's version series, therefore allowing you to continue to have access to all version changes. Note that you can promote frozen document versions and documents that are not versioning-enabled (documents whose
Namespace: FileNet.Api.Core
Assembly: FileNet.Api (in filenet.api.dll)
IsVersioningEnabled
property is set to false
). To successfully promote a document, the following requirements must be met or an error will occur:
- The document must be the latest minor version (
property is set toVersionStatus
).IN_PROCESS - The document must be the current version (
property is set toIsCurrentVersion
).true - The user must have the appropriate access rights (
).MAJOR_VERSION - The document must not be reserved (
property is set toIsReserved
).false
After a successful call to
, the Content Engine performs the following steps on the document version that is being promoted:
- Applies the versioning security template (if it exists and is enabled) for the
state.RELEASED - Sets the
property to 0.MinorVersionNumber - Increments the
property by 1.MajorVersionNumber - Sets the
property toVersionStatus
.RELEASED
In addition, the Content Engine performs the following steps on the previous major document version that is being superseded:
- Sets the
property toVersionStatus
.SUPERSEDED - Applies the versioning security template (if it exists and is enabled) for the
state.SUPERSEDED
Namespace: FileNet.Api.Core
Assembly: FileNet.Api (in filenet.api.dll)