6.5

© 2007 ABBYY. All rights reserved.
20
1. Run the Administration Station.
2. Select the required document type in the project tree.
3. Then in the Action menu, select Edit Form Identifiers...
4. In the dialog box that opens, add or remove the required form identifiers.
Important! If you use an *.mxfd file to create a batch type, its list of identifiers must contain at least one identifier.
Rules
A rule is a formalized description that applies certain restrictions to data as well as establishing relations between data in a batch.
Rules are divided into:
Onepage rules that establish relations between data in the same document page. For more information about one–
page rules, refer to the ABBYY FormReader User’s Guide, Creating a Batch/Using Validation Rules.
Multipage rules establish relations between data located on different pages. They are used to validate the data in a
batch. A multipage rule for a document template establishes relations between data in the same document, while a rule
for a batch type establishes relations between data in different documents included in a batch.
Important!
Multipage rules should refer to exportable blocks only. When creating a multipage rule, make sure that the Export block option on the
Block tab in the Properties dialog box is selected for all blocks mentioned in the rule.
There are the following types of multipage rules:
Assembly rules validated during assembly are rules stating restrictions on the structure of a document or a
batch. If errors are detected by such rules, the batch cannot be assembled. When you add a page during assembly, the
program checks all the rules of this type. If one of the rules reports an error, the batch will not be assembled.
Important!
Use rules of this type only if absolutely necessary, as they greatly slow down batch assembly. It is recommended to describe all the
restrictions on the structure of a document or a batch either in the structure or in assembly rules checked after batch assembly.
Assembly rules validated after assembly are rules stating restrictions on the structure of a document or batch.
These rules are checked after batch assembly. The values returned by these rules are either TRUE or FALSE.
If the program detects errors by using required multipage rules, and these errors cannot be corrected for some reason, in
order to finish processing of the document it must be assigned 'Multipage rule error' status.
Required rules are rules associating the values of fields in document (batch) pages. The values returned by these rules
are either TRUE or FALSE.
If the program detects errors by using required multipage rules, and these errors cannot be corrected for some reason, in order to
finish processing of the document it must be assigned 'Multipage rule error' status.
Value rules are rules connecting the values of page fields in a document or in a batch. In contrast to all the above rules,
the value returned by these rules should be a number.
Example: Suppose the first page of a document is a questionnaire with the personal data about a respondent, and the
other pages are the respondent’s bank accounts. In this case you can create a multipage rule that will count the balance
of all the respondent’s accounts and use this value in other rules.
Warning is a rule connecting the values of page fields in a document or in a batch. The value returned by these rules
should be a number.
If the program detects errors by using Warning multipage rules, and these errors cannot be corrected, in order to finish
processing of the document it must be assigned
'Multipage rule warning' status.
There are two ways of creating rules:
By using descriptive rule language.
By using VB Script.
Rules are created and edited in the Create/Edit Rule dialog box. In this dialog box, besides the name and the expression of the rule,
you can specify the order in which the rules will be run and enable/disable rules.