1 Introduction to Oracle WebCenter Capture Scripts

This chapter provides an introduction to developing scripts for Oracle WebCenter Capture.

A script is a custom piece of code consumed by the Capture client or batch processor (Import or Recognition) that allows you to customize functionality beyond existing configuration settings. For example, you might incorporate a script to change the first letter of a name to uppercase or to use a proprietary calculation to validate an account number used in a transaction.

Below are the main steps for developing and incorporating scripts in Capture components:

  1. For the component, write the JavaScript, using the events, classes, and information provided in the component's chapter:

    Refer to Chapter 2, "Capture Scripting Samples" for reference.

  2. On the Advanced tab of a selected workspace in the WebCenter Capture Workspace Console, a workspace manager adds the script, identifying its component type and loading the script file.

  3. In a client profile or an import or recognition processor job, the workspace manager selects the script for use. Note that workspace managers can incorporate multiple client scripts in a client profile and specify the order in which they are executed.

For scripting, Capture uses the JavaScript script engine included with the Java Runtime Environment. Refer to the Oracle Java documentation for more information.

Scripts can be incorporated in the following Capture components, as referenced in the guide Oracle Fusion Middleware Managing Oracle WebCenter Capture: