Rules

ABBYY FlexiCapture for Invoices uses rules to validate invoices automatically. Upon validation, an invoice is assigned a status and a list of issued errors and warnings is generated, enabling the Operator to decide whether the invoice needs to be verified manually. While verifying an invoice in the document editor, the Operator sees the list of errors detected by the rules and can use this list to navigate and review the defective fields.

ABBYY FlexiCapture for Invoices already includes pre-defined validation rules for invoices commonly used in different countries (See Rules). Users can modify or remove existing rules and create new custom rules.

Some features specific to rules in ABBYY FlexiCapture for Invoices

For detailed instructions on working with rules in ABBYY FlexiCapture See Rules.

Rules in ABBYY FlexiCapture for Invoices have the following specific features:

Rules may affect the status of a document

Rules may be applied to a certain set of countries

Using the list of rules

View the complete list of rules

To view all the rules set up for the project:

  1. From the Document Definition menu, select Document Definition Properties....
  2. In the dialog box that opens, click the Rules tab.
  3. In the Show rules list, select owned by Document Definition and its children.

To view all the rules that will be applied to invoices from a particular country, say, Germany use the filter.

Setting up a filter

Finding a rule in the list

Creating new rules

To create a new rule:

  1. From the Document Definition menu, select Document Definition Properties....
  2. In the dialog box that opens, click the Rules tab.
  3. In the Show rules list, select owned by Document Definition and its children.
  4. Select the field where the rule will be stored. This may affect the operation of some rules (e.g. how its error messages are generated). If you have doubts as to which field to choose, select the topmost node, i.e. Invoice Layout.
  5. Click New Rule....
  6. In the dialog box that opens select one of the standard rule types, or select Script, which allows you to write your own rule.

Note: For detailed information about each rule type and for instructions on how to create them, See Rules.

The instructions below are specific to creating rules in ABBYY FlexiCapture for Invoices.

  1. After you have selected a rule type, you need to specify:
    1. Name
      The name of the rule should reflect the kind of validation performed by the rule. Errors issued by the rule will be displayed to the Operator in the following format:
      Rule name: Error message.
      If you want the rule to affect the status of invoices, prefix its name with (Exception) or (Rejected), depending on the status you want assigned to an invoice if the rule detects an error.
    2. Severity
      Severity flags help the Operator to review the errors and warnings and decide which invoices should be verified manually.
      Data export can also be made dependent on the severity flag. For example, you can:
          • export documents that have no rule errors but have rule warnings to your working database
          • export documents that have rule errors to an exceptions folder
          • prohibit the export of document with errors altogether

For detailed instructions on setting up export based on the severity of a rule, See Rules.

    1. Whether the rule should be enabled after it is created (Rule is enabled option)
  1. In this step you need to specify the condition for applying the rule. Typically, this condition is defined by the value of the Invoice Layout\BU\Country field.
    By default, the rule will always be applied (Apply rule=always). If you want the rule to be applied only under certain conditions:
    1. From the Apply rule list, select on condition.
    2. Click Edit... to modify the condition.
    3. Select the field whose value will trigger the rule (Invoice Layout\BU\Country).
    4. Specify the condition and, if applicable, allowed and prohibited values.
      Example 1. The rule must be applied to German invoices.
      Select the Belongs to set condition, click Add, and add the value DE.
      Example 2. The rules must be applied to all invoices except German and French invoices.
      Select the Does not belong to set, condition, click Add, and add the values DE, FR.
  1. In this step, you need to set up the rule. For detailed information, See Rules.

Disabling a rule

To disable a previously set up rule:

  1. Find the rule in the list (see above).
  2. Clear the box in the Enabled column next to this rule. Alternatively, double-click the rule to open its Properties dialog box and clear the Enabled rule option on the General tab.

If you are certain that you will no longer need a rule, you can delete it. To delete a rule:

  1. Find the rule in the list (see above).
  2. Select the rule by clicking its name in the list and then click Delete.

12.04.2024 18:16:02

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.