Process project fields
The following image demonstrates the script event sequence during document processing:

* The Event sequence during extraction is executed for fields that are defined at the project level.
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 the project level. For each defined project field, the BeforeExtract or AfterExtract events are fired. This extraction sequence is different to normal field extraction because no field inheritance is carried out, and the Validated event is not available for project fields even though it is listed in list of available events 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 extraction to overwrite the result, set Preserve to FALSE in the corresponding Field_BeforeExtract event of the class.