DestroyVersionsWithStates
Description
Destroys any previous versions with matching States. The specified ObjVer will not be destroyed, only prior versions are taken into account when checking against the supplied states.
Syntax
Sub DestroyVersionsWithStates(Vault As Vault, ObjVer As ObjVer, WorkflowStates() As Object)
Parameters
Name |
Data Type |
Description |
Vault |
Vault containing the Object and states |
|
ObjVer |
Object with previous states to destroy |
|
WorkflowStates |
Array |
Array of Workflow State ID or Alias |
Return
No return value.
Example
'create Pentagon DOCS Script Library object
Set scriptLib = GetExtensionObject("ExDOCS.Core.ScriptLibrary")
scriptLib.DestroyVersionsWithStates(Vault, ObjVer, Array("PDOCS.State.WIP", "PDOCS.State.PrepareForIssue")