GetTaskByStageId

What it does

Selects the task with the highest priority and opens it for processing. The selected task is locked (i.e. cannot be opened by other users).

Important! A task must be opened before any actions on the task can be performed.

Definition

int GetTaskByStageId( int sessionId, int projectId, int[] stageIds, bool onlyPreprocessedTasks, bool onlyPrivateBatches );

Parameters

Name Type Description
sessionId int The ID of the connection to the Application Server
projectId int Project ID
stageIds int[] The IDs of the stages to get task from
onlyPreprocessedTask bool

The flag which determines from which tasks to select. Possible values:

  • True - select only pre-processed tasks;
  • False - select from all tasks.
onlyPrivateBatches bool

The flag which determines the set of available batches. Possible values:

  • True - only batches that belong the current user or user group are available;
  • False - all batches are available.

Returned value

Type Description
int Task ID

1/16/2023 10:02:51 AM

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.