UiPath Activities

The UiPath Activities Guide

TrainableAsyncCodeActivity Class

Namespace: UiPath.DocumentProcessing.Contracts.Training
Assembly: UiPath.DocumentProcessing.Contracts

Starting with v2.2.0, this abstract class has been deprecated.

Description

Abstract class that implements the UiPath.DocumentProcessing.Contracts.Training.ITrainableActivity interface and the System.Activities.AsyncCodeActivity abstract class.

This class should be implemented in order to construct a AsyncCodeActivity for classifier and extractor training, compatible with the Train Classifiers and Extractors scope activity and the document processing infrastructure.

In order to implement this abstract class, the BeginExecute() and EndExecute() methods need to be overridden.

Remarks

All the InArguments defined are automatically populated by the Train Classifiers and Extractors activity for all child activities.

The InArguments contain:

  • information about the document to be processed (original file path, text version, and document object model, document bounds)
  • information about the document type and values for each field that training should be performed on, expected to be understood and processed by the training activity (these are set by the Train Classifiers and Extractors activity after their configuration in the "Configure Training" wizard of the scope activity)

There are no OutArguments of this activity.

Members

Constructors

  • TrainableAsyncCodeActivity() - protected default constructor

Properties

  • DocumentPath (InArgument<string>) - the file path to the document
  • DocumentText (InArgument<string>) - the text version of the document
  • DocumentObjectModel (InArgument<UiPath.DocumentProcessing.Contracts.Dom.Document>) - the document object model of the document
  • HumanValidatedData (InArgument<UiPath.DocumentProcessing.Contracts.Results.ExtractionResult[]> - the extraction results for the processed document, that should be used for training.
  • PersistenceId (string) - the unique, opaque ID that is used by the scope activities in order to correctly track and configure the training activity.

Updated 9 months ago


TrainableAsyncCodeActivity Class


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.