Process project fields

The script event sequence during document processing is illustrated in the following figure:


A visual representation of Classification and Extraction events.

* For fields that are defined at the project level, the Event sequence during extraction is executed.

For each document a BeforeProcessXDoc event is fired. If you have defined fields on the project level for each document the BeforeExtract event is fired followed by the BeforeLocate and AfterLocate events for each defined locator on project level. For each defined project field, the events BeforeExtract or AfterExtract are fired, which is the event sequence of extraction with the difference to the normal field extraction being that no field inheritance and the Validated event is not available for project fields even though it is listed in the available event list for all project fields. After the field related events, the project field extraction is finalized with the AfterExtract event for the document.

All project fields are set to .Preserve = TRUE after classification, so even if their definition is overwritten in a class the results are not overwritten. To enable the extraction to overwrite the result you have to set .Preserve to FALSE in the corresponding Field_BeforeExtract event of the class.