Testing Runtime Script Events window

You can define application and batch related events on project class level. All-purpose extraction scripts for field extraction and field validation methods, as well as all scripting related to Validation and Verification forms are performed when classifying, extracting or validating test documents. However, application and batch related events are not performed. Instead, you can use this window to configure the event you want to test in the hierarchical view of a test subset and run the inserted script code by clicking Test Events icon.

You can configure a batch or application related events by selecting one from each of the following:

Module

This is the name of the module that runs the script event. Select one of the following:

  • Server Step 1

  • Document Review

  • Server Step 2

  • Validation

    Note If you increase the number of validation steps for your project additional Validation modules, such Validation Step 2, are added to test the script for a specific validation step.
  • Verification

Event

Select one of the following events:

  • Application_InitializeScript

  • Application_InitializeBatch

  • Batch_Open

  • Batch_Close

  • Application_DeinitializeScript

See the Scripting Help for more information about these script events.

Module Type

This option is only available when you select Validation or Verification as those modules can run as rich or thin client modules. It allows you testing your script code for the rich client respectively the thin client module that is selected in the Module's list.

  • Rich client - select this option to test a script event for the selected rich client module.

  • Thin client - select this option to test a script event for the selected thin client module.

Close Mode

This option is only available when you are testing the Batch_Close event. If you are testing the Batch_Close event, you need to choose one of the following options:

  • Final - select this option if you have configured the Batch_Close event to run when processing of the batch is finished.

  • Suspend - select this option if you have configured the Batch_Close event to run when a batch is suspended.

  • Error - select this option if you have configured the Batch_Close event to run when a batch has an error.

  • Child - select this option if you have configured the Batch_Close event to route documents to a child batch.

  • Parent - select this option if you have configured the Batch_Close event to route documents to a parent batch.

In addition to the common Project Builder buttons, the following buttons are provided:

OK

This button saves the configured settings for the application and batch event that is executed when the Test Runtime Script Events button is selected from the toolbar.

See the Scripting Help for more information about the ScriptExecutionMode and the CloseMode.