|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > Workflow > QueryWorkflowStatePermissions |
It is a Workflow specific command; it returns the permission of the currently logged-in user about the workflow state identified by the state index of the process with name process name.
call DBWShell("QueryWorkflowStatePermissions ProcessName StateIndex" )
process_name |
name of the process to query on |
|---|---|
state_index |
workflow state |
@OK |
0:no premissions |
processId = "DRAWINGS"
processStateIndex = 1
DBWShell("QueryWorkflowStatePermissions " & replace(processId," ","|") & " " & processStateIndex )
ok = DBWResult("@OK")
if ok=1 then
DBWMsgBox "You have permission on this state!"
end if
Last updated on Thursday, May 28, 2002