Processing Events - OCR for AnyDoc - Foundation 23.1 - Foundation 23.1 - AnyDoc - external

OCR for AnyDoc Programming Reference Guide

Platform
AnyDoc
Product
OCR for AnyDoc
Release
Foundation 23.1
License

There are certain times during batch processing that VBScript can be run. Each script is attached to a processing event that is appropriate for the script's nature. Use the table below to help you decide which event is best for a particular script.

Event

Where it runs

When it runs

Level

Description

AnyApp Post Algorithm

Extraction station

As the form finishes Extraction

Algorithm

After the Extract phase, the script associated with the algorithm event is run.

AnyApp Post Extraction

Extraction station

As the form finishes Extraction

Form

After the Extract phase, the script associated with this event runs if the form contains multi-pages and is processed using one of the chained methods.

AnyApp Pre Application

Extraction station

As the form finishes Extraction

Form

After the Extract phase, the script associated with the template event is run before any algorithms are processed.

AnyApp Post Application

Extraction station

As the form finishes Extraction

Algorithm

After the Extract phase, the script associated with the template event is run after all of the algorithms are processed.

Verification Function Key (F-Key)

Verification Station

Whenever an F-Key is pressed.

Function Key

During verification, the script associated with the function key is run when the user presses the associated function key.

Interactive

Verification station

As the Verification operator leaves the zone

Zone only

Use to validate data, and turn other zones off or on based on values.

If the script needs to be run on every image, set Utilize Verification Process to Always in the Verification parameters for the template. This guarantees that the form is loaded in Verification.

In addition, since the script is run when the Verification operator leaves the zone, to run the script on every image, the Verification operator must stop on the zone. To ensure this:

In a Post Extraction or Pre Verification script, set the zone with the Interactive script to Flagged.

OR

In the Verification parameters for the zone, select Always Verify If Not Blank and in the Rules parameters for the zone, select Output Required. This method is only good if output is actually necessary for the zone.

Post Extraction

Extraction station

As the form finishes Extraction

Form or Zone

Use to set up conditions for the Verification operator. This event is good for:

  • Database calls and anything else that might be slow. Because it runs on the Extraction station, it does not use an operator's time.

  • Scripts that must be run on every image even if the image is not Verified; this event runs on every image and the others only run if the form loads in Verification.

Post Verification

Verification station

As the Verification operator leaves the form

Form or Zone

Use to manipulate the output, and as a final check of rules.

If the script needs to be run on every image, set Utilize Verification Process to Always in the Verification Parameters window for the template. This guarantees that the form is loaded in Verification.

Pre Verification

Verification station

As the form loads in Verification

Form or Zone

Use to set up conditions for the Verification operator, such as flagging problems.

If the script needs to be run on every image, set Utilize Verification Process to Always in the Verification parameters for the template. This guarantees that the form is loaded in Verification.

Zone Link

Extract or Verification Station

Post Extract and during Verification phases.

Algorithm

The script associated with the Algorithm is processed to generate the data for the output fields when an associated input field changes.