|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > Workflow > WorkflowGoToState |
Move a document to the current workflow state to a specific one
call DBWShell("WorkflowGoToState DocUid ProcessName StateName isLastDoc Silent")
DocUid |
the unique id of the document in workflow |
|---|---|
ProcessName |
the name of the process |
StateName |
the name of the state where to jump; special values are: •"WORKFLOW_BOF" to jump before the first state ( ABORT condition ) •"WORKFLOW_EOF" to jump after the last state ( APPROVED condition ) possible only from the last workflow state |
isLastDoc |
if "1" the document is the last document of the group of documents assigned to the same ECO_ID |
Silent |
if "1" will not ask the confirmation for the activation of the assigned state |
DocUid=345
StateName="WORKFLOW_EOF"
ProcessName= "DRAWINGS"
DBWShell("WorkflowGoToState " DocUid & " " & ProcessName & " " & StateName & " 0 1")
ok = DBWResult("@OK")
if ok=1 then
DBWMsgBox "Current state is " & StateName
end if