M-Files API 23.11.13135.0
AddTask Method
VaultApplicationTaskOperations Object : AddTask Method
The ID of the task queue to which the new task is to be added.
The number of minutes to wait before moving the task to the waiting state if the instance carrying it out has not reported to the server that it is still in progress. In the waiting state, the task is idle and waits to be selected for processing.
The task type can be used as an identifier for how the task data should be interpreted.
The payload of the task.
Description
Adds a task to a task queue. The "ApplicationTaskInfo" object must contain the ID of the task queue to which the task is to be added.
Syntax
Visual Basic
Public Function AddTask( _
   ByVal QueueID As String, _
   ByVal RestoreToWaitingTimeoutInMinutes As Long, _
   ByVal TaskType As String, _
   ByVal TaskData() As Byte _
) As String
Parameters
QueueID
The ID of the task queue to which the new task is to be added.
RestoreToWaitingTimeoutInMinutes
The number of minutes to wait before moving the task to the waiting state if the instance carrying it out has not reported to the server that it is still in progress. In the waiting state, the task is idle and waits to be selected for processing.
TaskType
The task type can be used as an identifier for how the task data should be interpreted.
TaskData
The payload of the task.
Remarks
Requires M-Files 19.3.7499.1 or later.
See Also

VaultApplicationTaskOperations Object  | VaultApplicationTaskOperations Members