GetUserFromLastStateTransition
Description
Returns the ID of the user who execute the transition of the specified workflow state.
Syntax
Function GetUserFromLastStateTransition(Vault As Vault, ObjVer As ObjVer, WorkflowState As Object) As Integer
Parameters
Name |
Data Type |
Description |
Vault |
The vault that contains the Object to process |
|
ObjVer |
ObjVer of the object to test. |
|
WorkflowState |
String / Integer |
Workflow State ID or Alias |
Return
The ID of the user who execute the transition of the specified workflow state.
Example
'create Pentagon DOCS Script Library object
Set scriptLib = GetExtensionObject("PentagonDOCS.Core.ScriptLibrary")
'get user from last state transition
userID = scriptLib.GetUserFromLastStateTransition(Vault, ObjVer, "ExDOCS.State.WIP")