TaskCreate

<< Click to Display Table of Contents >>

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

TaskCreate

Description

This command allows to start programmatically the definition of a new task to be processed later by the TaskManager. The TaskCreate method should be used together with the TaskAppend (to append documents to the task definition) and the TaskSubmit (to submit the task definition as a new effective task of the TaskManager) shell methods.

Syntax

call DBWShell("TaskCreate taskType taskWsName taskPriority [execApproveScript [approvePrevRev  [processRelatedDocuments]]]")

Parameter

taskType

task definition type:
1: Checkin
2: Approve
3: Plot
4: Script

taskWsName

involved working server name

taskPriority

task execution priority:1: low
2: normal
3: high

execApproveScript

When taskType=2 (approving)
0: do not run OnApprove.LST script
1: execute OnApprove.LST script
Note: the script will be run for each task action queued with the TaskAppend api.

approvePrevRev

When taskType=2 (approving)
0: approve current revion
1: approve previous revision

processRelatedDocuments

0: only UNIQUE_ID passed to the TaskAppend are processed
1: (default) consider also related children.

Example

DBWShell("TaskCreate 2 myPc 1 0 0 0")