RepositoryObjectVersion CreateVersion Method

Meta Data Services Programming

Meta Data Services Programming

RepositoryObjectVersion CreateVersion Method

This method creates a new version of a repository object, based on the current version.

Syntax

set variable = object.CreateVersion(versionID)

The Refresh method syntax has the following parts.

Part Description
variable An object expression that evaluates to a RepositoryObjectVersion object. It receives a reference to the newly created object version.
object An object expression that evaluates to a RepositoryObjectVersion object.
versionID The value you want the repository to use as an object-version identifier for the newly created object version. If you want the repository to choose a value for you, set this parameter to EXTVERSIONID_NULL, or you can leave it blank.
Remarks

The current object version must be frozen.

The repository engine creates the new version as unfrozen. Its property values are identical to the property values of the current object version.

For each of the predecessor version's origin relationship collections, the repository engine takes this action:

  • If the corresponding relationship type has the COLLECTION_NEWORGVERSIONSPARTICIPATE flag set, the repository engine copies the collection to the newly created version.

  • If the corresponding relationship type does not have the COLLECTION_NEWORGVERSIONSPARTICIPATE flag set, the repository engine does not copy the collection to the new version.

You cannot invoke this method while operating in a workspace.

See Also

Assigning Object Identifiers

Object Identifiers and Internal Identifiers

RepositoryObjectVersion Object