Definition
int CreateTask( int sessionId, int batchId, int stageExternalId, int priority, string comment, int UserId, int[] docIds, bool setAsCurrentTask );
Parameters
| Name | Type | Description |
|---|---|---|
sessionId | int | The ID of the connection to the Application Server. |
batchId | int | The ID of the batch that contains the documents. |
stageExternalId | int | The ID of the stage the task will be placed in. |
priority | int | The priority of the task. For possible values, see Priority. |
comment | string | A text comment on the task. |
UserId | int | The ID of the user the task will be assigned to. If a group ID is specified, any user in the group can process the task. If the value is 0, the task can be processed by any user who is allowed to process this queue in the given batch type. For queues processed by the Processing Server, this parameter is ignored. |
docIds | int[] | The IDs of the batch documents. |
setAsCurrentTask | bool | A flag that determines where the task is placed. True sets the task as the current task for the user who called the method. False places the task in a queue. |
Returned value
| Type | Description |
|---|---|
int | Task ID. |
