M-Files API 22.6.11519.0
SetWorkflowStateTransition Method
VaultObjectPropertyOperations Object : SetWorkflowStateTransition Method
The object version.
The workflow to be used. If the workflow is -1 the current workflow is used. If the workflow changes, you need to provide a state transition that leads to 'no state' of the current workflow.
The state transition to be used.
The version comment to be set with the state transition. Note that if the object is checked out, the existing version comment will be overwritten. An empty or a NULL value is ignored.
Description
Sets the workflow state transition for the specified object.
Syntax
Visual Basic
Public Function SetWorkflowStateTransition( _
   ByVal ObjVer As ObjVer, _
   ByVal Workflow As Long, _
   ByVal lStateTransition As Long, _
   ByVal lVersionComment As String _
) As ObjectVersionAndProperties
Parameters
ObjVer
The object version.
Workflow
The workflow to be used. If the workflow is -1 the current workflow is used. If the workflow changes, you need to provide a state transition that leads to 'no state' of the current workflow.
lStateTransition
The state transition to be used.
lVersionComment
The version comment to be set with the state transition. Note that if the object is checked out, the existing version comment will be overwritten. An empty or a NULL value is ignored.
See Also

VaultObjectPropertyOperations Object  | VaultObjectPropertyOperations Members