DBWorkflowGetStateList

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > Workflow >

DBWorkflowGetStateList

Description

Returns the list of the states composing the assigned process.

Syntax

Sub DBWorkflowGetStateList (processIDbyref stateList)

Parameter

processID

id of the process

Return Values

stateList

array containing the list of the states composing the assigned processId

See also

DBWorkflowGetUserList

Example

Sub Main()
 DBWInit(TRUE)
 ReDim Preserve stateList(1)
 DBWorkflowGetStateList "MODELS",stateList
 for i=0 to ubound(stateList)-1
  DBWMsgBox "state=" & stateList(i)
 next
End Sub