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:
- From the Document Definition menu, select Document Definition Properties....
- In the dialog box that opens, click the Rules tab.
- 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:
- From the Document Definition menu, select Document Definition Properties....
- In the dialog box that opens, click the Rules tab.
- In the Show rules list, select owned by Document Definition and its children.
- 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.
- Click New Rule....
- 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.
- After you have selected a rule type, you need to specify:
- 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. - 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.
- Whether the rule should be enabled after it is created (Rule is enabled option)
- 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:
- From the Apply rule list, select on condition.
- Click Edit... to modify the condition.
- Select the field whose value will trigger the rule (Invoice Layout\BU\Country).
- 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.
- 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:
- Find the rule in the list (see above).
- 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:
- Find the rule in the list (see above).
- Select the rule by clicking its name in the list and then click Delete.
4/12/2024 6:16:02 PM