WorkflowSubmit

<< Click to Display Table of Contents >>

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

WorkflowSubmit

available from build: 20080526

Description

It submits the passed unique_id to the Workflow

Syntax

call DBWShell("WorkflowSubmit [uid [recursive [isECR  [ECOid ProcessID]]]]")

Parameter

uid

Optional. the unique id of the document to submit

recursive

Optional.
1: all the document children are submitted to the workflow too

isECR

Optional.
1: an ECR Workflow cycle is started on the passed/selected document

ECOid

Optional.
1: the ECO identifier to directly assign the document to

ProcessID

Optional.
1: the process ID to directly assign the document to

Example

Sub main()

 DBWInit(TRUE)
 DBWShell "WorkflowSubmit 100074677 0 0 ECOID_0001 GENERICS_DOCS"
 DBWShell "WorkflowGoToState 100074677 GENERICS_DOCS FINAL_APPROVAL 0 1"
End Sub