Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Check the document Version 1 (Net)

Группа Group "Robin AI", подгруппа subgroup "Проверка документовDocument verification"

Описание

Действие через библиотеку Preferentum проверяет документ по указанному правилу. Пользователь из выпадающего списка может выбрать правило с параметрами по умолчанию, либо указать config файл, в котором указаны персональные параметры для поддерживаемого правила.

Иконка действия

Image Removed

Параметры

Входные параметры

...

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

Image Added

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

...

Правило                                                          - Выпадающий список с правилами для проверки документа.

                                                                           Элементы списка: Особые комбинации, Даты, Деньги, Повторы, География, Персоны и организации, Структура, Орфография, Пользовательские параметры.

                                                                           Если выбрано "Пользовательские параметры", то необходимо заполнить поле "Пользовательские параметры"

 Пользовательские параметры                     - Путь до config файла, в котором записаны параметры для правила. Правило должно входить в список поддерживаемых

                                                                            Если пользователю необходимо указать пользовательские параметры, то в поле "Правило" необходимо выбрать "Пользовательские параметры"

                                                                            В поле "Пользовательские параметры" указать config файл, в котором указано правило (одно из допустимых) и нужные параметры для этого правила.

                                                                            Config файл должен содержать параметры только одно правила и должен иметь формат cfg. Поле будет проигнорировано, если в "Правило" указано не "Пользовательские параметры"

Путь до папки                                               - Путь до папки, в который будет записан новый файл. В файле будет указан документ с примечаниями правила

...

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

Перезаписать                                                - Логический параметр. Если значение «true», и в указанной папке существует файл с таким же именем и расширением, то новый файл его перезапишет.

                                                                          Если «false», документ перезаписан не будет и действие вернет ошибку

Тайм-аут, мс                                                 - Предельное время ожидания ответа. Измеряется в миллисекундах. Может быть любым числом. Минус в отрицательных числах будет игнорироваться.

                                                                         Тайм-аута начинает отсчет с момента работы библиотеки Preferentum

Выходные параметры

Документ с примечаниями"                       - путь до файла, в который записан документ с пометками правила. Название файла берется из параметра "Имя файла". Расширение нового файла зависит от расширения поданного документа:

...

Если в "Документ" указан файл расширения docx, то создастся файл расширения docx

...

Если в "Документ" указан файл расширения xlsx, то создастся файл расширения xlsx

Если в "Документ" указан файлы других допустимых расширений, то создастся файл расширения html

...

...

  • 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:

      1378

...

    • Probably meant "order".
      525543

...

    • The 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. Нажать на кнопку "Старт" в верхней панели.

Результат

  1. 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Программный робот отработал успешно. В указанной папке сохранен файл с замечаниями. Также действие создало таблицу с замечаниями.

 

Написать комментарий...