.NET Framework Class Library
TaskManager.TaskCreate Method

<< Click to Display Table of Contents >>

Navigation:  MwPDMApi Namespace > TaskManager Class > TaskManager Methods >

.NET Framework Class Library
TaskManager.TaskCreate Method

Start the definition of a new task to be processed later by the TaskManager. Should be used together with the TaskAppend (to append documents to the task definition) and the TaskSubmit

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Sub TaskCreate ( _

 taskType As Integer, _
 taskWsName As String, _
 taskPriority As Integer, _
 execApproveScript As Boolean, _
 approvePrevRev As Boolean, _
 populateChildrenStacks As Boolean _
)

C#

public void TaskCreate(

 int taskType,
 string taskWsName,
 int taskPriority,
 bool execApproveScript,
 bool approvePrevRev,
 bool populateChildrenStacks
)

Visual C++

public:

void TaskCreate(
 int taskType,
 StringtaskWsName,
 int taskPriority,
 bool execApproveScript,
 bool approvePrevRev,
 bool populateChildrenStacks
)

JavaScript

function taskCreate(taskTypetaskWsNametaskPriorityexecApproveScriptapprovePrevRevpopulateChildrenStacks);

Parameters

taskType

Type: System.Int32
task definition type: 1 for Checkin, 2 for Approve, 3 for plot, 4 for script

taskWsName

Type: System.String
involved working server name

taskPriority

Type: System.Int32
task execution priority: 1 for low, 2 for normal, 3 for high

execApproveScript

Type: System.Boolean
When taskType=2 (approving) if true execute OnApprove.LST script. The script will be run For Each task action queued With the TaskAppend api.

approvePrevRev

Type: System.Boolean
When taskType=2 (approving) if true approve previous revision otherwise approve current revion

populateChildrenStacks

Type: System.Boolean
if true, TaskManager will execute the task for all the child sub-assemblies, otherwise only to 1st level components

See Also

TaskManager Class

TaskManager Members

MwPDMApi Namespace