Вы просматриваете старую версию данной страницы. Смотрите текущую версию.

Сравнить с текущим просмотр истории страницы

« Предыдущий Версия 10 Следующий »

Check the document Version 1 (Net)

Group "Robin AI", subgroup "Document verification"


Description

Action through Preferentum library checks the document against the specified rule. The user can select a rule with default parameters from the dropdown list, or specify a config file that specifies personal parameters for the supported rule.

Action icon

Parameters

Input parameters

NameDescription
DocumentThe document that will be checked by the rule. Valid extensions: doc, docx, xls, xlsx, csv, ppt, pptx, txt, rtf, pdf, html, odf, odt, ods, wps, wpd, xml
Rule

A dropdown list with rules for validating a document.

List items: Special combinations, Dates, Money, Repetitions, Geography, Persons and organizations, Structure, Spelling, Custom parameters.

If "Custom settings" is selected, you must fill in the "Custom settings" field

User settings

Path to the config file where the parameters for the rule are written. The rule must be in the list of supported rules.

If the user needs to specify custom parameters, then in the "Rule" field it is necessary to select "Custom parameters".

Config file must contain parameters of only one rule and must be in cfg format. The field will be ignored if the "Rule" specifies parameters other than "Custom parameters".

Folder pathThe path to the folder where the new file will be written. The file will include the rule's annotation document
File nameThe name for the new file to which the rule notes document will be written. The following characters are not allowed in the name \/:* ?"<>| +
Overwrite

Boolean parameter. If "true" and a file with the same name and extension exists in the specified folder, the new file will overwrite it.

 If "false", the document will not be overwritten and the action will return an error.

Timeout, ms

Limit time to wait for a response. Measured in milliseconds. It can be any number. Minus in negative numbers will be ignored.

Timeout starts counting from the moment the Preferentum library is running

Output parameters

NameDescription
Document with notes

 - path to the file where the document with the rule notes is written. The name of the file is taken from the "File name" parameter. The extension of the new file depends on the extension of the submitted document:

  • If a docx extension file is specified in "Document", a docx extension file will be created

  • If an xlsx extension file is specified in "Document", an xlsx extension file will be created

  • If files of other valid extensions are specified in "Document", a file of extension html will be created

    Examples of documents: result.htmlrs.xlsxres.docx

  • If a 2003 version docx/xlsx extension file is specified in "Document", an htm extension file will be created.

    • "Notes" is a table where the first column is the beginning of the range of text to which the note applies, the second column is the end of the range, and the third column is a description of the note
      Example:

      1378Probably meant "order".
      525543The word "BLECK" contains an error or it is an un-dictionaried word.
  • If there are no notes in the document, a file without notes is created (source document). The action will return the path to this file and an empty table

Settings

Property

Description

Type

Example

Mandatory field

Parameters

Document

Path to the document file to be checked. Valid formats: doc, docx, xls, xlsx, csv, ppt, pptx, txt, rtf, pdf, html, odf, odt, ods, wps, wpd, xml

File Path

file.docx


Rule

Rule by which the specified document will be checked. If "User settings" is specified, the "User settings" field should be filled in

Options:

  • Special combinations
  • Dates
  • Money
  • Repeats
  • Geography
  • Persons and organizations
  • Structure
  • Spelling
  • User settings
String
  • Spelling
Yes
User settingsPath to a cfg file that contains personalized parameters for the rule. Only one of the supported rules can be specified in the file. The file is considered only if " User settings" is selected in the "Rule" field
File pathfile.cfgNo
Folder pathPath to the folder where a new file will be created containing the source document with the comments received during its verification
Folder path
Yes
File nameThe name of the file (without extension) to which the original document with the comments received during its verification will be writtenStringresultYes
OverwriteIf the value is "true" and a file with the same name and extension exists in the specified folder, the new file will overwrite it. If "false", the file will not be overwritten and the action will return an errorBooleanyesNo
Timeout, ms
Limit time to wait for the check result. It is specified in millisecondsNumeric10000No
Results

Document with notes

Path to the file containing the source document with the comments received during its verification. If the format of the source document is "docx", the file "docx" will be created. If the format is "xlsx", the file "xlsx" will be created. If the format of the source document is different, the file "html" will be created

File path



Notes

Table with a list of comments received during document verification. The first column is the beginning of the range of text to which the remark refers. The second column is the end of the range. The third column is a description of the remarkTable

Special conditions of use 

None.

Example of use

Task

It is necessary to check the document for spelling.

Solution

Use the "Validate document" action

Implementation

  1. Move the "Check the document" action to the workspace.





  2. Set the parameters with the correct data.


  3. Click on the "Start" button in the top panel.

Result

The program robot completed successfully. A file with remarks was saved in the specified folder. The action also created a table with remarks.

 

  • Нет меток