Zum Hauptinhalt springen

TaskService

Type Parameters​

T​

T

Implements​

Constructors​

Constructor​

new TaskService<T>(): TaskService<T>

Returns​

TaskService<T>

Methods​

authorize()​

authorize(token): this

Authorize Client by given token provided by One Unity.

Parameters​

token​

string

Given token provided by One Unity

Returns​

this

Returns the client instance for chaining.

Implementation of​

IDataRaiService.authorize


getReadoutInfo()​

getReadoutInfo(taskId, fieldId?): this

Readout data that are produced by target system by analysing documents

Parameters​

taskId​

string

id of corresponding task in target system

fieldId?​

string

Id of document image

Returns​

this

'this' because of builder pattern


getTaskStacksInfo()​

getTaskStacksInfo(config): this

List of the tasks that match the filter criteria entered.

Parameters​

config​

TaskStacksInfoConfig

Returns​

this

List of tasks


finishTaskById()​

finishTaskById(taskId, learnData?): this

Finishes the task using the passed id

Parameters​

taskId​

string

learnData?​

LearnDataConfig

data to correct the AI for the extraction associated with the task

Returns​

this

void


deleteTaskById()​

deleteTaskById(taskId): this

Deletes the task using the transferred id

Parameters​

taskId​

string

Returns​

this

void


execute()​

execute(options?): T

Executes a common action against given Data Recognition AI environment

Parameters​

options?​

TExecuteOptions

Returns​

T

depends on the previously defined action

Implementation of​

IDataRaiService.execute