QueryWorkflowStatePermissions

<< Click to Display Table of Contents >>

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

QueryWorkflowStatePermissions

Description

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.

Syntax

call DBWShell("QueryWorkflowStatePermissions ProcessName StateIndex" )

Parameters

process_name

name of the process to query on

state_index

workflow state

Results

@OK

0:no premissions
1:ok permissions

Example

…

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