PreviousWorkflowStateEquals
Description
Determines if the previous version has the specified Workflow State.
Syntax
Function PreviousWorkflowStateEquals(Vault As Vault, ObjVer As ObjVer, WorkflowState As Object) As Boolean
Parameters
Name |
Data Type |
Description |
Vault |
Vault containing the objects to process |
|
ObjVer |
ObjVer of the object to test. |
|
WorkflowState |
String / Integer |
Workflow State ID or Alias |
Return
Returns True if the previous Workflow State matches that of the specified state. Otherwise returns False.
Example
'create Pentagon DOCS Script Library object
Set scriptLib = GetExtensionObject("PentagonDOCS.Core.ScriptLibrary")
'previous workflow state equals
result = scriptLib.PreviousWorkflowStateEquals(Vault, ObjVer, "ExDOCS.State.WIPApproved")